STRNLEN
Section: ¸®´ª½º ÇÁ·Î±×·¡¸Ó ¸Å´º¾ó (3)
Updated: 1999³â 6¿ù 25ÀÏ
Index
Return to Main Contents
À̸§
strnlen - °íÁ¤ ±æÀÌ ¹®ÀÚ¿ÀÇ ±æÀ̸¦ °áÁ¤ÇÑ´Ù.
»ç¿ë¹ý
#include <string.h>
size_t strnlen (const char *s, size_t maxlen);
¼³¸í
strnlen ÇÔ¼ö´Â ³¡¹®ÀÚÀÎ '\0'À» Æ÷ÇÔÇÏÁö ¾Ê°í ´ëü·Î maxlenÀÎ
s°¡ °¡¸®Å°´Â ¹®ÀÚ¿¿¡ ÀÖ´Â ¹®ÀÚµéÀÇ ¼ö¸¦ ¹ÝȯÇÑ´Ù.
ÀÌ·¸°Ô µÇ¸é, strnlen ÇÔ¼ö´Â s¿¡¼ óÀ½ maxlen ¹®Àڵ鸸
º¸¸ç °áÄÚ s+maxlen¸¦ ³ÑÁö ¾Ê´Â´Ù.
¹Ýȯ°ª
strnlen ÇÔ¼ö´Â ¸¸ÀÏ ¹®ÀÚ¿ÀÌ maxlenº¸´Ù ÀÛ´Ù¸é strlen(s)¸¦
¹ÝȯÇϸç, ¸¸ÀÏ s°¡ °¡¸®Å°°í Àִ óÀ½ maxlen ¹®ÀÚµé »çÀÌ¿¡ '\0' ¹®ÀÚ°¡ ¾ø´Ù¸é maxlen¸¦ ¹ÝȯÇÑ´Ù.
ȣȯ
ÀÌ ÇÔ¼ö´Â GNU È®ÀåÀÌ´Ù.
°ü·Ã Ç׸ñ
strlen(3)
¿ªÀÚ
Á¤°ÈÆ <skyeyes@soback.kornet.net>, 2001³â 2¿ù 24ÀÏ
Index
- À̸§
-
- »ç¿ë¹ý
-
- ¼³¸í
-
- ¹Ýȯ°ª
-
- ȣȯ
-
- °ü·Ã Ç׸ñ
-
- ¿ªÀÚ
-
This document was created by
man2html,
using the manual pages.
Time: 08:07:01 GMT, March 25, 2004