STRDUP

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

À̸§

strdup - ¹®ÀÚ¿­ º¹»çÇϱâ.  

»ç¿ë¹ý

#include <string.h>

char *strdup(const char *s);
 

¼³¸í

strdup() ÇÔ¼ö´Â ¹®ÀÚ¿­ s¸¦ º¹»çÇÑ »õ·Î¿î ¹®ÀÚ¿­¿¡ ´ëÇÑ Æ÷ÀÎÅ͸¦ ¹ÝȯÇÑ´Ù. »õ·Î¿î ¹®ÀÚ¿­¿¡ ´ëÇÑ ¸Þ¸ð¸®´Â malloc(3)À¸·Î ÇÒ´çµÇ¸ç free(3)·Î ÇØÁ¦ µÈ´Ù.  

¹Ýȯ°ª

strdup() ÇÔ¼ö´Â º¹»çµÈ ¹®ÀÚ¿­¿¡ ´ëÇÑ Æ÷ÀÎÅ͸¦ ¹ÝȯÇϸç, ÀÌ¿ëÇÒ¼ö ÀÖ´Â ¸Þ¸ð¸®°¡ ÃæºÐÇÏÁö ¾ÊÀ¸¸é NULLÀ» ¹ÝȯÇÑ´Ù.  

¿¡·¯

ENOMEM
º¹»çÇÒ ¹®ÀÚ¿­À» ÇÒ´çÇϱâ À§ÇØ ÀÌ¿ëÇÒ¼ö ÀÖ´Â ¸Þ¸ð¸®°¡ ÃæºÐÇÏÁö ¾Ê´Ù.
 

ȣȯ

SVID 3, BSD 4.3  

°ü·Ã Ç׸ñ

calloc(3), malloc(3), realloc(3), free(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