STRSTR

Section: ¸®´ª½º ÇÁ·Î±×·¡¸Ó ¸Å´º¾ó (3)
Updated: 1993³â 4¿ù 12ÀÏ
Index
Return to Main Contents
 

À̸§

strstr - substringÀ» ã´Â´Ù.  

»ç¿ë¹ý

#include <string.h>

char *strstr(const char *haystack, const char *needle);
 

¼³¸í

strstr() ÇÔ¼ö´Â ¹®ÀÚ¿­ haystack¿¡¼­ substring needle ÀÌ Ã³À½ ¹ß°ßµÇ´Â °÷À» ã´Â´Ù. ³¡ÀÎ `\0' ¹®ÀÚ´Â ºñ±³µÇÁö ¾Ê´Â´Ù.  

¹Ýȯ°ª

strstr() ÇÔ¼ö´Â substringÀÌ ½ÃÀÛÇÏ´Â Æ÷ÀÎÅ͸¦ ¹ÝȯÇϰųª substringÀÌ ¹ß°ßµÇÁö ¾Ê´Â´Ù¸é NULLÀ» ¹ÝȯÇÑ´Ù.  

¹ö±×

Linux libc (4.5.26 °°Àº)ÀÇ Ãʱ⠹öÀüÀº ºó ÀÎÀÚ¸¦ Çã¿ëÇÏÁö ¾Ê¾Ò´Ù. ³ªÁß ¹öÀü(4.6.27 °°Àº)Àº ÀÛ À嵿ÇÑ´Ù. ±×¸®°í needle°¡ ºñ¾î ÀÖÀ»¶§ haystack¸¦ ¹ÝȯÇÑ´Ù.  

°ü·Ã Ç׸ñ

index(3), memchr(3), rindex(3), strchr(3), strpbrk(3), strsep(3), strspn(3), strtok(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