MEMMEM
Section: ¸®´ª½º ÇÁ·Î±×·¡¸Ó ¸Å´º¾ó (3)
Updated: 1998³â 2¿ù 13ÀÏ
Index
Return to Main Contents
NAME
memmem - substringÀÇ À§Ä¡¸¦ ¾Ë¾Æ³½´Ù.
SYNOPSIS
#include <string.h>
void *memmem(const void *haystack, size_t haystacklen,
- const void *needle, size_t needlelen);
DESCRIPTION
memmem() ÇÔ¼ö´Â ±æÀÌ°¡ haystacklenÀÎ ¸Þ¸ð¸® ¿µ¿ª haystack¿¡¼
±æÀÌ°¡ needlelenÀÎ substring needleÀÇ Ã³À½ ¹ß»ýÇÑ ½ÃÀÛ À§Ä¡¸¦ ã´Â´Ù.
RETURN VALUE
memmem() ÇÔ¼ö´Â substringÀÇ ½ÃÀÛ Æ÷ÀÌÅ͸¦ ¹ÝȯÇϰųª substringÀÌ ¹ß°ßµÇÁö
¾Ê´Â´Ù¸é NULLÀ» ¹ÝȯÇÑ´Ù.
CONFORMING TO
ÀÌ ÇÔ¼ö´Â GNU È®ÀåÀÌ´Ù.
BUGS
ÀÌ ÇÔ¼ö´Â Linux ¶óÀ̺귯¸®µé »óÀ§ ¹öÀü°ú libc 5.0.9 ¹öÀü¿¡¼ ¹®Á¦°¡ ÀÖ´Ù.;
`needle'¿Í `haystack'ÀÎÀÚ´Â ¹Ù²î¾úÀ¸¸ç needle°¡ óÀ½ ¹ß»ýÇÑ ³¡¿¡ ´ëÇÑ Æ÷ÀÎÅÍ°¡
¹ÝȯµÈ´Ù. libc 5.0.9°¡ ¿©ÀüÈ÷ ³Ð°Ô »ç¿ëµÇ±â ¶§¹®¿¡ »ç¿ëÇϱ⿡´Â À§ÇèÇÑ ÇÔ¼öÀÌ´Ù.
¿¹Àü°Í°ú ÃֽŠlibc´Â ¸¸ÀÏ needle°¡ ºñ¾ú´Ù¸é, haystack-1 (haystack ´ë½Å¿¡)°¡ ¹ÝȯµÈ´Ù.
±×¸®°í glibc (2.0.5)´Â ´õ ³ª»Ú°Ô µÇ¾úÀ¸¸ç `haystack'ÀÇ ¸¶Áö¸· ¹ÙÀÌÆ®¿¡ ´ëÇÑ Æ÷ÀÎÅ͸¦
¹ÝȯÇÑ´Ù.
Èñ¸ÁÀûÀ¸·Î ÀÌ°ÍÀº °íÃÄÁú °ÍÀÌ´Ù. memmem() ÇÔ¼ö´Â `needle'¸¦ ºñ¾î¼ »ç¿ëÇؼ´Â
¾ÈµÈ´Ù.
SEE ALSO
strstr(3)
¿ªÀÚ
Á¤°ÈÆ <skyeyes@soback.kornet.net>, 2001³â 2¿ù 20ÀÏ
Index
- NAME
-
- SYNOPSIS
-
- DESCRIPTION
-
- RETURN VALUE
-
- CONFORMING TO
-
- BUGS
-
- SEE ALSO
-
- ¿ªÀÚ
-
This document was created by
man2html,
using the manual pages.
Time: 08:07:01 GMT, March 25, 2004