function
<cstdio>
fputcint fputc ( int character, FILE * stream );
Write character to stream
Writes a character to the stream and advances the position indicator.The character is written at the position indicated by the internal position indicator of the stream, which is then automatically advanced by one.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* fputc example: alphabet writer */
#include <stdio.h>
int main ()
{
FILE * pFile;
char c;
pFile = fopen ("alphabet.txt","w");
if (pFile!=NULL) {
for (c = 'A' ; c <= 'Z' ; c++)
fputc ( c , pFile );
fclose (pFile);
}
return 0;
}
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4