NAME
    ftell - return the file position

SYNOPSIS
    ftell(fd)

TYPES
    fd		file

    return	int

DESCRIPTION
    This function returns the current position in a file.  Current
    position is next byte that would be read or written.  The first
    byte is byte 0.  When at the end of file, ftell returns a value
    which is 1 greater than the file size as reported by fsize.

EXAMPLE
    > fd = fopen("/etc/motd", "r")
    > ftell(fd)
	    0

    > fgetline(fd)
	    "BSDI BSD/386 1.1 Kernel #2: Sat May 21 05:45:01 PDT 1994"
    > ftell(fd)
	    57

LIMITS
    fd must be associaed with an open file

LIBRARY
    none

SEE ALSO
    errno, fclose, feof, ferror, fflush, fgetc, fgetline, fgets, files, fopen,
    fprintf, fputc, fputs, fseek, fsize, ftell, isfile, printf, prompt
