1al_fputs(3) Library Functions Manual al_fputs(3)
2
3
4
6 al_fputs
7
9 #include <allegro5/allegro.h>
10
11 int al_fputs(ALLEGRO_FILE *f, char const *p)
12
14 Writes a string to file. Apart from the return value, this is equiva‐
15 lent to:
16
17 al_fwrite(f, p, strlen(p));
18
19 Parameters:
20
21 · f - file handle to write to
22
23 · p - string to write
24
25 Returns a non-negative integer on success, EOF on error.
26
27 Note: depending on the stream type and the mode passed to al_fopen(3),
28 newline characters in the string may or may not be automatically trans‐
29 lated to native end-of-line sequences, e.g. CR/LF instead of LF.
30
32 al_fwrite(3)
33
34
35
36Allegro reference manual al_fputs(3)