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;
}
|
You can do very well in speculation where land or anything to do with earth is concerned. |