STRSEP

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

À̸§

strsep - ¹®ÀÚ¿­¿¡¼­ ÅäÅ«À» »Ì¾Æ³½´Ù.  

»ç¿ë¹ý

#include <string.h>

char *strsep(char **stringp, const char *delim);
 

¼³¸í

strsep() ÇÔ¼ö´Â ¹®ÀÚ¿­ stringp¿¡¼­ delim·Î ±¸ºÐµÇ´Â ´ÙÀ½ ÅäÅ«À» ¹ÝȯÇÑ´Ù. ÅäÅ«Àº `\0' ¹®ÀÚ·Î ³¡³ª¸ç stringpÀº ÅäÅ«À» Áö³ª°¡´Â ½ÃÁ¡¿¡¼­ °»½ÅµÈ´Ù.  

¹Ýȯ°ª

strsep() ÇÔ¼ö´Â ÅäÅ«¿¡ ´ëÇÑ Æ÷ÀÎÅ͸¦ ¹ÝȯÇϰųª ¸¸ÀÏ delim°¡ stringp¿¡¼­ ¹ß°ßµÇÁö ¾Ê´Â´Ù¸é NULLÀ» ¹ÝȯÇÑ´Ù.  

ÁÖÀÇ

strsep() ÇÔ¼ö´Â strtok()¿¡ ´ëÇÑ ´ëü ÇÔ¼ö·Î ¼Ò°³µÇ¾ú´Ù. ¿Ö³ÄÇÏ¸é ³ªÁß¿¡ ºó Çʵ带 ó¸®ÇÏÁö ¸øÇϱ⠶§¹®ÀÌ´Ù. (±×·¯³ª, strtok() ÇÔ¼ö´Â ANSI-C¿¡¼­ È®Á¤µÇ¾ú°í ÈξÀ ȣȯÀûÀÌ´Ù.)  

ȣȯ

BSD 4.4  

°ü·Ã Ç׸ñ

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