STRCAT

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

À̸§

strcat, strncat - µÎ ¹®ÀÚ¿­À» ¿¬°á½ÃŲ´Ù.  

»ç¿ë¹ý

#include <string.h>

char *strcat(char *dest, const char *src);

char *strncat(char *dest, const char *src, size_t n);
 

¼³¸í

strcat() ÇÔ¼ö´Â destÀÇ ¸¶Áö¸· `\0' ¹®ÀÚ¸¦ °ãÃļ­ src ¹®ÀÚ¿­À» dest ¹®ÀÚ¿­¿¡ Ãß°¡½ÃŲ´Ù. ±×¸®°í ¸¶Áö¸·¿¡ `\0' ¹®ÀÚ¸¦ Ãß°¡½ÃŲ´Ù. ¹®ÀÚ¿­Àº ÁßøµÇÁö ¾ÊÀ¸¸ç dest ¹®ÀÚ¿­Àº °á°ú¸¦ À§ÇØ ÃæºÐÇÑ °ø°£À» °¡Áö°í ÀÖ¾î¾ß ÇÑ´Ù.

strncat() ÇÔ¼ö´Â srcÀÇ Ã³À½ n¹®Àڵ鸸 dest¿¡ Ãß°¡½ÃÅ°´Â°ÍÀ» Á¦¿ÜÇÏ°í´Â ºñ½ÁÇÏ´Ù.  

¹Ýȯ°ª

strcat()¿Í strncat() ÇÔ¼ö´Â °á°ú ½ºÆ®¸µ dest¿¡ ´ëÇÑ Æ÷ÀÎÅ͸¦ ¹ÝȯÇÑ´Ù.  

ȣȯ

SVID 3, POSIX, BSD 4.3, ISO 9899  

°ü·Ã Ç׸ñ

bcopy(3), memccpy(3), memcpy(3), strcpy(3), strncpy(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