mirror of
https://github.com/lcn2/calc.git
synced 2025-08-19 01:13:27 +03:00
29 lines
501 B
Plaintext
29 lines
501 B
Plaintext
NAME
|
|
fflush - flush output to file
|
|
|
|
SYNOPSIS
|
|
fflush(fd)
|
|
|
|
TYPES
|
|
fd file
|
|
|
|
return nil
|
|
|
|
DESCRIPTION
|
|
This function forces a buffered output to the file associated with fd.
|
|
|
|
EXAMPLE
|
|
> fd = fopen("/tmp/file", "w")
|
|
> fputc(fd, "@");
|
|
> fflush(fd)
|
|
|
|
LIMITS
|
|
fd must be associated 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
|