GNU C Library: fputc
|
상위: GNU C 라이브러리
#include <stdio.h>
int fputc(int c, FILE *stream) 자세한 설명 ¶인자
c를 unsigned char로 변환하고, 이것을 스트림 stream으로 출력한다.
쓰기 에러가 발생하면 EOF를 리턴한다. 그렇지 않으면 인자로 준 c를 리턴한다.
예제 ¶
#include <stdio.h>
int main(void) { char hello[] = "Hello, world!\n"; char *p; for (p = hello; *p != '\0'; p++) { fputc(*p, stdout); } return 0; } |
Your mind understands what you have been taught; your heart, what is true. |











