· KLDP.org · KLDP.net · KLDP Wiki · KLDP BBS ·
GNU C Library: fputc



#include <stdio.h>

int fputc(int c, FILE *stream)

¿ä¾à

¹®ÀÚ¸¦ ½ºÆ®¸²À¸·Î Ãâ·Â


¸®ÅÏ °ª

¾²±â ¿¡·¯°¡ ¹ß»ýÇϸé EOF¸¦ ¸®ÅÏÇÑ´Ù. ±×·¸Áö ¾ÊÀ¸¸é ÀÎÀÚ·Î ÁØ c¸¦ ¸®ÅÏÇÑ´Ù.


ÀÚ¼¼ÇÑ ¼³¸í

ÀÎÀÚ c¸¦ unsigned char·Î º¯È¯ÇÏ°í, ÀÌ°ÍÀ» ½ºÆ®¸² streamÀ¸·Î Ãâ·ÂÇÑ´Ù. ¾²±â ¿¡·¯°¡ ¹ß»ýÇϸé EOF¸¦ ¸®ÅÏÇÑ´Ù. ±×·¸Áö ¾ÊÀ¸¸é ÀÎÀÚ·Î ÁØ c¸¦ ¸®ÅÏÇÑ´Ù.


ȣȯ¼º

ANSI - C, POSIX.1


¿¹Á¦

#include <stdio.h>

int main(void)
{
    char hello[] = "Hello, world!\n";
    char *p;
    for (p = hello; *p != '\0'; p++) {
        fputc(*p, stdout);
    }
    return 0;
}


SEE ALSO

putc, putchar, fputs, puts

ID
Password
Join
Among the lucky, you are the chosen one.


sponsored by andamiro
sponsored by cdnetworks
sponsored by HP

Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2005-05-13 16:47:37
Processing time 0.0035 sec