focus expression text field at startup -> version 1.2
[LeanCalc.git] / help / fputstr
1 NAME
2     fputstr - send one or more null-terminated strings to a file
3
4 SYNOPSIS
5     fputstr(fs, s_1, s_2, ...)
6
7 TYPES
8     fs          file stream open for writing
9     s_1, ...    string
10
11     return      null or error value
12
13 DESCRIPTION
14     If the stream cannot be written to or an argument is of the wrong
15     type, an error value is returned.
16
17     Otherwise the strings s_1, s_2, ..., including the terminating
18     null characters ('\0') are written to the file stream fs.
19
20 EXAMPLE
21     > f = fopen("/tmp/junk", "w")
22     > fputstr(f, "Alpha", "Beta")
23     > freopen(f, "r")
24     > fgetstr(f)
25         "Alpha"
26     > fgetstr(f)
27         "Beta"
28     > fgetstr(f)
29     >
30     > fputstr(f, "Gamma")
31         Error 72
32
33 LIMITS
34     none - XXX - is this correct?
35
36 LINK LIBRARY
37     none - XXX - is this correct?
38
39 SEE ALSO
40     fgetstr, fgetfield, fgets, fputs, fopen, files, fprintf
41