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; } |
He who invents adages for others to peruse takes along rowboat when going on cruise. |