focus expression text field at startup -> version 1.2
[LeanCalc.git] / help / fputs
1 NAME
2     fputs - write a string to a file
3
4 SYNOPSIS
5     fputs(fd, data)
6
7 TYPES
8     fd          file
9     data        str
10
11     return      nil
12
13 DESCRIPTION
14     This function writes the string found in data to the file
15     associated with fd.
16
17 EXAMPLE
18     > fd = fopen("/tmp/newfile", "w")
19     > fputs(fd, "chongo was here\n")
20     > fd2 = fopen("/tmp/newfile", "r")
21     > fgetline(fd2)
22             "chongo was here"
23
24 LIMITS
25     fd must be associated with an open file
26
27 LINK LIBRARY
28     none
29
30 SEE ALSO
31     errno, fclose, feof, ferror, fflush, fgetc, fgetline, fgets, files, fopen,
32     fprintf, fputc, fputs, fseek, fsize, ftell, isfile, printf, prompt
33