#include <stdio.h> int main(void){ FILE *fp; int c = 'X'; fp = fopen("test.txt", "w"); if (fp == NULL){ printf("Can't open file!\n"); return -1; } putc(c, fp); printf("putc: %c\n", (char)c); fclose(fp); return 0; }
タグ:
このサイトはreCAPTCHAによって保護されており、Googleの プライバシーポリシー と 利用規約 が適用されます。