mirror of
https://github.com/lcn2/calc.git
synced 2025-08-16 01:03:29 +03:00
33 lines
615 B
Plaintext
33 lines
615 B
Plaintext
NAME
|
|
fputs - write a string to a file
|
|
|
|
SYNOPSIS
|
|
fputs(fd, data)
|
|
|
|
TYPES
|
|
fd file
|
|
data str
|
|
|
|
return nil
|
|
|
|
DESCRIPTION
|
|
This function writes the string found in data to the file
|
|
associated with fd.
|
|
|
|
EXAMPLE
|
|
> fd = fopen("/tmp/newfile", "w")
|
|
> fputs(fd, "chongo was here\n")
|
|
> fd2 = fopen("/tmp/newfile", "r")
|
|
> fgetline(fd2)
|
|
"chongo was here"
|
|
|
|
LIMITS
|
|
fd must be associaed 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
|