óÀ½, ÀÌÀü, ´ÙÀ½, ¸¶Áö¸·, Â÷·Ê.
libio
is distributed with a complete implementation of the ANSI C
stdio
facility. It is implemented using streambuf
objects. See section Wrappers for C stdio
.
libio
´Â ANSI C stdio
¼³ºñ(^^~)¸¦ ¿Ïº®ÇÏ°Ô ±¸ÇöÇϱâ À§ÇØ ¹èÆ÷µÈ´Ù. ±×°ÍÀº streambuf
°´Ã¼¸¦ »ç¿ëÇØ ±¸ÇöÇÑ´Ù. Wrappers for C stdio
ÀýÀ»
ÂüÁ¶Ç϶ó.
The stdio
package is intended as a replacement for the whatever
stdio
is in your C library.
Since stdio
works best when you build libc
to contain it, and
that may be inconvenient, it is not installed by default.
stdio
ÆÐÅ°Áö´Â C ¶óÀ̺귯¸®¿¡ µé¾îÀÖ´Â
stdio
¸¦ ´ëüÇÑ´Ù. stdio
´Â stdio
¸¦ Æ÷ÇÔÇÑ libc
¸¦ ºôµåÇÒ ¶§ ÃÖ°í·Î ÀÛµ¿ÇÑ´Ù. ±×¸®°í
ºÒÆíÇÒÁö ¸ð¸£Áö¸¸, libc
´Â ±âº»°ªÀ¸·Î ¼³Ä¡µÇ¾î ÀÖÁö ¾Ê´Ù.
Extensions beyond ANSI:
ANSI È®ÀåÀº ´ÙÀ½°ú °°´Ù.
FILE
is identical to a streambuf.
Hence there is no need to worry about synchronizing C and C++
input/output--they are by definition always synchronized.
FILE
Àº streambuf¿Í °°´Ù. ±×·¯¹Ç·Î C¿Í C++
ÀÔ·Â/Ãâ·ÂÀÇ µ¿±âȸ¦ °ÆÁ¤ÇÒ ÇÊ¿ä¾ø´Ù. ±×°ÍµéÀº Ç×»ó µ¿±âȵǵµ·Ï
Á¤ÀǵȴÙ.
FILE
from C. Thus the system is extensible using the standard
streambuf
protocol.
FILE
·Î½á ±×°ÍÀ» »ç¿ëÇÒ ¼ö ÀÖ´Ù. µû¶ó¼ ½Ã½ºÅÛÀº Ç¥ÁØ streambuf
ÇÁ·ÎÅäÄÝÀ» »ç¿ëÇØ È®ÀåÇÒ ¼ö ÀÖ´Ù.
ungetc()
buffer.
ungetc()
¹öÆÛ