diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2008-03-06 14:23:07 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2008-03-06 14:23:07 +0000 |
commit | d73557349c4fa0cd2b7f010f4d4b32781496327f (patch) | |
tree | 8f9d7279b3f678e7f0cdf69a3e1738101aac4def /Build/source/texk/kpathsea/xftello.c | |
parent | a00938dec2284ec31176df5dece347544ac58c03 (diff) |
update LFS - part 1 of 4
git-svn-id: svn://tug.org/texlive/trunk@6870 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/kpathsea/xftello.c')
-rw-r--r-- | Build/source/texk/kpathsea/xftello.c | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/Build/source/texk/kpathsea/xftello.c b/Build/source/texk/kpathsea/xftello.c new file mode 100644 index 00000000000..5a0009ab8eb --- /dev/null +++ b/Build/source/texk/kpathsea/xftello.c @@ -0,0 +1,33 @@ +/* xftello.c: ftello with error checking. + + Copyright 2005 Olaf Weber + Copyright 1992, 93, 95 Karl Berry + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ + +#include <kpathsea/config.h> + + +off_t +xftello P2C(FILE *, f, string, filename) +{ + off_t where = ftello (f); + + if (where < 0) + FATAL_PERROR(filename); + + return where; +} |