|
|
1.1 ! root 1: ! 2: ! 3: strcmp() String Function strcmp() ! 4: ! 5: ! 6: ! 7: ! 8: Compare two strings ! 9: ! 10: #include <string.h> ! 11: iinntt ssttrrccmmpp(_s_t_r_i_n_g_1, _s_t_r_i_n_g_2) cchhaarr *_s_t_r_i_n_g_1, *_s_t_r_i_n_g_2; ! 12: ! 13: strcmp compares string1 with string2 lexicographically. It ! 14: returns zero if the strings are identical, returns a number less ! 15: than zero if string1 occurs earlier alphabetically than string2, ! 16: and returns a number greater than zero if it occurs later. This ! 17: routine is compatible with the ordering routine needed by qsort. ! 18: ! 19: ***** Example ***** ! 20: ! 21: For examples of this function, see the entries for string ! 22: functions and malloc. ! 23: ! 24: ***** See Also ***** ! 25: ! 26: qsort(), shellsort(), string functions, string.h, strncmp() ! 27: ! 28: ! 29: ! 30: ! 31: ! 32: ! 33: ! 34: ! 35: ! 36: ! 37: ! 38: ! 39: ! 40: ! 41: ! 42: ! 43: ! 44: ! 45: ! 46: ! 47: ! 48: ! 49: ! 50: ! 51: ! 52: ! 53: ! 54: ! 55: ! 56: ! 57: ! 58: ! 59: ! 60: ! 61: ! 62: ! 63: ! 64: COHERENT Lexicon Page 1 ! 65: ! 66:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.