STRCMP

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

À̸§

strcmp, strncmp - µÎ ¹®ÀÚ¿­ ºñ±³  

»ç¿ë¹ý

#include <string.h>

int strcmp(const char *s1, const char *s2);

int strncmp(const char *s1, const char *s2, size_t n);
 

¼³¸í

strcmp() ÇÔ¼ö´Â µÎ ¹®ÀÚ¿­ s1¿Í s2¸¦ ºñ±³ÇÑ´Ù. ÀÌ ÇÔ¼ö´Â s2¿¡ ºñÇÏ¿© s1°¡ ÀÛÀ¸¸é À½¼ö¸¦, °°À¸¸é 0À», Å©¸é ¾ç¼ö¸¦ ¹ÝȯÇÑ´Ù.

strncmp() ÇÔ¼ö´Â s1ÀÇ Ã³À½ n ¹®ÀÚ¸¸ ºñ±³ÇÏ´Â °ÍÀ» Á¦¿ÜÇϸé strcmp()¿Í ºñ½ÁÇÏ´Ù.  

¹Ýȯ°ª

strcmp()¿Í strncmp() ÇÔ¼ö´Â ¸¸¾à s1 (¶Ç´Â óÀ½ n ¹ÙÀÌÆ®)°¡ ¹ß°ßµÇ¸é 0º¸´Ù À۰ųª, °°°Å³ª, Å« Á¤¼ö¸¦ ¹ÝȯÇÑ´Ù. °¢°¢Àº s2¿¡ ºñÇÏ¿© À۰ųª, °°°Å³ª, Å©´Ù.  

ȣȯ

SVID 3, POSIX, BSD 4.3, ISO 9899  

°ü·Ã Ç׸ñ

bcmp(3), memcmp(3), strcasecmp(3), strncasecmp(3), strcoll(3)  

¿ªÀÚ

¹è¼ºÈÆ <plodder@kldp.org>, 2000³â 7¿ù 18ÀÏ


 

Index

À̸§
»ç¿ë¹ý
¼³¸í
¹Ýȯ°ª
ȣȯ
°ü·Ã Ç׸ñ
¿ªÀÚ

This document was created by man2html, using the manual pages.
Time: 08:07:01 GMT, March 25, 2004