Site Tools


fskip

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

fskip [2006/10/06 19:08] (current)
Line 1: Line 1:
 +# $EPIC: fskip.txt,v 1.2 2006/10/06 19:08:28 jnelson Exp $
 +======Synopsis:​======
 +$[[fskip]](//​file descriptor//​ //number//)
 +
 +======Technical:​======
 +The [[fskip]] function skips the next //number// lines in the file.
 +The return value is the number of lines that were actually skipped.
 +If you try to skip more lines than are left in the file (end of file),
 +the return value will be less than //number//.
 +
 +The //file descriptor//​ value must have been previously returned by
 +the [[open]] function.
 +
 +======Returns:​======
 +The number of lines skipped int he file, which is usually //number// unless
 +end of file is reached, then it will be less than //number//.
 +
 +======Examples:​======
 +<​file>​
 +$fskip(4 3)                        skip 3 lines from fd 4.
 +</​file>​
  
fskip.txt ยท Last modified: 2006/10/06 19:08 (external edit)