vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| This describes return value of cmd | getline [var] and the behaviour of fflush() without arguments[1]. diff -x CVS -rNu ../awk.orig/awk.1 ./awk.1 --- ../awk.orig/awk.1 Fri May 13 20:55:02 2005 +++ ./awk.1 Wed Mar 29 15:45:26 2006 @@ -610,9 +610,14 @@ will read subsequent records from the stream. The stream remains open until explicitly closed with a call to .Fn close . -.It Fn fflush expr +.Ic getline +returns 1 for a successful input, 0 for end of file, and \-1 for an error. +.It Fn fflush [expr] Flushes any buffered output for the file or pipe -.Fa expr . +.Fa expr +or all open files or pipes if +.Fa expr +is omitted. .Fa expr should match the string that was used to open the file or pipe. .It Ic getline Ciao, Kili [1] on awk's fflush(): in run.c, the function flush_all(void) obsolete; all calls to it could be replaced by fflush(NULL). I'll try to rip of a separate patch for this from my current patch chaos. |