1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
|
/* fputwc example */
#include <stdio.h>
int main ()
{
FILE * pFile;
wchar_t wc;
pFile = fopen ("example.txt","w");
if (pFile!=NULL) {
for (wc = L'A' ; wc <= L'Z' ; ++wc)
putwc ( wc , pFile );
fclose (pFile);
}
return 0;
}
|