eof
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
| — | eof [2013/12/01 23:42] (current) – created - external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ======Synopsis: | ||
| + | $__eof__(<< | ||
| + | |||
| + | ======Technical: | ||
| + | This function tests whether the client is currently at the end of the | ||
| + | file pointed to by the given file descriptor. | ||
| + | a file descriptor returned by the $[[open]]() function. | ||
| + | |||
| + | ======Practical: | ||
| + | This function is used to see if the end of a file has been reached. | ||
| + | This is mostly useful while reading a file, such that it can be closed | ||
| + | once the end is reached. | ||
| + | |||
| + | ======Returns: | ||
| + | < | ||
| + | -1 | ||
| + | | ||
| + | | ||
| + | </ | ||
eof.txt · Last modified: 2013/12/01 23:42 by 127.0.0.1
