2 ftell - return a file position
10 return non-negative integer or error value
13 This function attempts to return the current value of the file position
14 indicator for the stream. This is the number of characters (bytes)
15 between the beginning of the file and the position of the
16 next character for output in "w" or "w+" mode or for input.
18 On failure, this returns an error value.
21 ; fd = fopen("/tmp/curds", "w")
22 ; fputs(fd, "0123456789")
47 fseek, fgetpos, fsetpos, rewind, strerror
49 ## Copyright (C) 1999 Landon Curt Noll
51 ## Calc is open software; you can redistribute it and/or modify it under
52 ## the terms of the version 2.1 of the GNU Lesser General Public License
53 ## as published by the Free Software Foundation.
55 ## Calc is distributed in the hope that it will be useful, but WITHOUT
56 ## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
57 ## or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General
58 ## Public License for more details.
60 ## A copy of version 2.1 of the GNU Lesser General Public License is
61 ## distributed with calc under the filename COPYING-LGPL. You should have
62 ## received a copy with calc; if not, write to Free Software Foundation, Inc.
63 ## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
65 ## @(#) $Revision: 30.1 $
66 ## @(#) $Id: ftell,v 30.1 2007/03/16 11:10:42 chongo Exp $
67 ## @(#) $Source: /usr/local/src/cmd/calc/help/RCS/ftell,v $
69 ## Under source code control: 1995/03/04 11:33:21
70 ## File existed as early as: 1995
72 ## chongo <was here> /\oo/\ http://www.isthe.com/chongo/
73 ## Share and enjoy! :-) http://www.isthe.com/chongo/tech/comp/calc/