Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- MICROSYS C & Clipper Functions - <b>b_tell()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
b_tell()


Syntax:     b_tell(<expN>)

Purpose:    Tell position of file pointer

Arguments:  <expN> is the file handle returned by b_open()

Returns:    The the offset from the beginning of the file

Library:    MICROSYS.LIB

----------------------------------- Example ----------------------------------

   nCurByte := 0
   nHandle1 := b_open("myfile.txt")

   if( nHandle1 == -1 )
       qout("Unable to open myfile.txt!")
       retu(.f.)
   endi

   b_seek(nHandle1,20,0)
   nCurByte := b_tell(nHandle1)
   b_close(nHandle1)
   retu(.t.)

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson