鍍金池/ 教程/ C/ <string.h> - C語(yǔ)言標(biāo)準(zhǔn)庫(kù)
qsort() - C語(yǔ)言庫(kù)函數(shù)
strxfrm() - C語(yǔ)言庫(kù)函數(shù)
difftime() - C語(yǔ)言庫(kù)函數(shù)
isdigit() - C函數(shù)
<limits.h> - C語(yǔ)言標(biāo)準(zhǔn)庫(kù)
ldiv() - C語(yǔ)言庫(kù)函數(shù)
printf() - C語(yǔ)言庫(kù)函數(shù)
sin() - C函數(shù)
freopen() - C語(yǔ)言庫(kù)函數(shù)
NULL - C函數(shù)
mktime() - C語(yǔ)言庫(kù)函數(shù)
floor() - C函數(shù)
log() - C函數(shù)
rewind() - C語(yǔ)言庫(kù)函數(shù)
memcpy() - C語(yǔ)言庫(kù)函數(shù)
remove() - C語(yǔ)言庫(kù)函數(shù)
localtime() - C語(yǔ)言庫(kù)函數(shù)
strcoll() - C語(yǔ)言庫(kù)函數(shù)
fgets() - C語(yǔ)言庫(kù)函數(shù)
errno - C語(yǔ)言宏
<stdlib.h> - C語(yǔ)言標(biāo)準(zhǔn)庫(kù)
labs() - C語(yǔ)言庫(kù)函數(shù)
putchar() - C語(yǔ)言庫(kù)函數(shù)
wcstombs() - C語(yǔ)言庫(kù)函數(shù)
fclose() - C庫(kù)函數(shù)
system() - C語(yǔ)言庫(kù)函數(shù)
strncmp() - C語(yǔ)言庫(kù)函數(shù)
va_end() - C函數(shù)
setlocale() - C函數(shù)
strpbrk() - C語(yǔ)言庫(kù)函數(shù)
acos() - C函數(shù)
fabs() - C函數(shù)
asctime() - C語(yǔ)言庫(kù)函數(shù)
offsetof() - C函數(shù)
cos() - C函數(shù)
atoi() - C語(yǔ)言庫(kù)函數(shù)
strftime() - C語(yǔ)言庫(kù)函數(shù)
va_arg() - C函數(shù)
strstr() - C語(yǔ)言庫(kù)函數(shù)
<errno.h> - C語(yǔ)言標(biāo)準(zhǔn)庫(kù)
memchr() - C語(yǔ)言庫(kù)函數(shù)
fopen() - C語(yǔ)言庫(kù)函數(shù)
va_start() - C函數(shù)
fprintf() - C語(yǔ)言庫(kù)函數(shù)
strrchr() - C語(yǔ)言庫(kù)函數(shù)
<time.h> - C語(yǔ)言標(biāo)準(zhǔn)庫(kù)
C語(yǔ)言標(biāo)準(zhǔn)庫(kù)
isgraph() - C函數(shù)
srand() - C語(yǔ)言庫(kù)函數(shù)
isprint() - C函數(shù)
fputs() - C語(yǔ)言庫(kù)函數(shù)
sscanf() - C語(yǔ)言庫(kù)函數(shù)
getc() - C語(yǔ)言庫(kù)函數(shù)
<stdarg.h> - C語(yǔ)言標(biāo)準(zhǔn)庫(kù)
rename() - C語(yǔ)言庫(kù)函數(shù)
rand() - C語(yǔ)言庫(kù)函數(shù)
strspn() - C語(yǔ)言庫(kù)函數(shù)
frexp() - C函數(shù)
bsearch() - C語(yǔ)言庫(kù)函數(shù)
islower() - C函數(shù)
fwrite() - C語(yǔ)言庫(kù)函數(shù)
ispunct() - C函數(shù)
vsprintf() - C語(yǔ)言庫(kù)函數(shù)
strcspn() - C語(yǔ)言庫(kù)函數(shù)
fgetpos() - C庫(kù)函數(shù)
getchar() - C語(yǔ)言庫(kù)函數(shù)
tmpfile() - C語(yǔ)言庫(kù)函數(shù)
mbtowc() - C語(yǔ)言庫(kù)函數(shù)
sprintf() - C語(yǔ)言庫(kù)函數(shù)
ftell() - C語(yǔ)言庫(kù)函數(shù)
feof() - C庫(kù)函數(shù)
mblen() - C語(yǔ)言庫(kù)函數(shù)
clearerr() - C庫(kù)函數(shù)
modf() - C函數(shù)
strncat() - C語(yǔ)言庫(kù)函數(shù)
isspace() - C函數(shù)
ctime() - C語(yǔ)言庫(kù)函數(shù)
tmpnam() - C語(yǔ)言庫(kù)函數(shù)
isupper() - C函數(shù)
atol() - C語(yǔ)言庫(kù)函數(shù)
gets() - C語(yǔ)言庫(kù)函數(shù)
<setjmp.h> - C語(yǔ)言標(biāo)準(zhǔn)庫(kù)
perror() - C語(yǔ)言庫(kù)函數(shù)
exit() - C語(yǔ)言庫(kù)函數(shù)
memmove() - C語(yǔ)言庫(kù)函數(shù)
isalpha() - C函數(shù)
fsetpos() - C語(yǔ)言庫(kù)函數(shù)
fmod() - C函數(shù)
<float.h> - C語(yǔ)言標(biāo)準(zhǔn)庫(kù)
strtok() - C語(yǔ)言庫(kù)函數(shù)
wctomb() - C語(yǔ)言庫(kù)函數(shù)
strcat() - C語(yǔ)言庫(kù)函數(shù)
atof() - C語(yǔ)言庫(kù)函數(shù)
strchr() - C語(yǔ)言庫(kù)函數(shù)
<locale.h> - C語(yǔ)言標(biāo)準(zhǔn)庫(kù)
signal() - C函數(shù)
ungetc() - C語(yǔ)言庫(kù)函數(shù)
ferror() - C庫(kù)函數(shù)
C語(yǔ)言標(biāo)準(zhǔn)庫(kù)
strtoul() - C語(yǔ)言庫(kù)函數(shù)
fseek() - C語(yǔ)言庫(kù)函數(shù)
fscanf() - C語(yǔ)言庫(kù)函數(shù)
mbstowcs() - C語(yǔ)言庫(kù)函數(shù)
longjmp() - C函數(shù)
localeconv() - C函數(shù)
raise() - C函數(shù)
ceil() - C函數(shù)
<string.h> - C語(yǔ)言標(biāo)準(zhǔn)庫(kù)
free() - C語(yǔ)言庫(kù)函數(shù)
setvbuf() - C語(yǔ)言庫(kù)函數(shù)
atan() - C函數(shù)
C函數(shù)庫(kù)宏 assert()
<stdio.h> - C語(yǔ)言標(biāo)準(zhǔn)庫(kù)
fread() - C語(yǔ)言庫(kù)函數(shù)
vfprintf() - C語(yǔ)言庫(kù)函數(shù)
isxdigit() - C函數(shù)
toupper() - C函數(shù)
<ctype.h> - C語(yǔ)言標(biāo)準(zhǔn)庫(kù)
setjmp() - C函數(shù)
ldexp() - C函數(shù)
EDOM - C語(yǔ)言宏
strlen() - C語(yǔ)言庫(kù)函數(shù)
tolower() - C函數(shù)
clock() - C語(yǔ)言庫(kù)函數(shù)
fflush() - C庫(kù)函數(shù)
fgetc() - C語(yǔ)言庫(kù)函數(shù)
<stddef.h> - C語(yǔ)言標(biāo)準(zhǔn)庫(kù)
div() - C語(yǔ)言庫(kù)函數(shù)
<math.h> - C語(yǔ)言標(biāo)準(zhǔn)庫(kù)
isalnum() - C函數(shù)
memset() - C語(yǔ)言庫(kù)函數(shù)
calloc() - C語(yǔ)言庫(kù)函數(shù)
vprintf() - C語(yǔ)言庫(kù)函數(shù)
sqrt() - C函數(shù)
<assert.h> - C語(yǔ)言標(biāo)準(zhǔn)庫(kù)
time() C語(yǔ)言
atexit() - C語(yǔ)言庫(kù)函數(shù)
memcmp() - C語(yǔ)言庫(kù)函數(shù)
setbuf() - C語(yǔ)言庫(kù)函數(shù)
iscntrl() - C函數(shù)
abs() - C語(yǔ)言庫(kù)函數(shù)
abort() - C語(yǔ)言庫(kù)函數(shù)
exp() - C函數(shù)
realloc() - C語(yǔ)言庫(kù)函數(shù)
puts() - C語(yǔ)言庫(kù)函數(shù)
scanf() - C語(yǔ)言庫(kù)函數(shù)
malloc() - C語(yǔ)言庫(kù)函數(shù)
strerror() - C語(yǔ)言庫(kù)函數(shù)
strtol() - C語(yǔ)言庫(kù)函數(shù)
ERANGE - C語(yǔ)言宏
sinh() - C函數(shù)
atan2() - C函數(shù)
putc() - C語(yǔ)言庫(kù)函數(shù)
asin() - C函數(shù)
strcpy() - C語(yǔ)言庫(kù)函數(shù)
fputc() - C語(yǔ)言庫(kù)函數(shù)
getenv() - C語(yǔ)言庫(kù)函數(shù)
pow() - C函數(shù)
tanh() - C函數(shù)
gmtime() - C語(yǔ)言庫(kù)函數(shù)
strtod() - C語(yǔ)言庫(kù)函數(shù)
log10() - C函數(shù)
strcmp() - C語(yǔ)言庫(kù)函數(shù)
<signal.h> - C語(yǔ)言標(biāo)準(zhǔn)庫(kù)

<string.h> - C語(yǔ)言標(biāo)準(zhǔn)庫(kù)

string.h 頭定義了一個(gè)變量的類型,操作字符數(shù)組的一個(gè)宏觀和各種功能。

庫(kù)變量

以下是在頭string.h中定義的變量類型:

S.N. 變量和說(shuō)明
1 size_t 
這是一個(gè)無(wú)符號(hào)整數(shù)類型的sizeof關(guān)鍵字的結(jié)果。

庫(kù)宏

以下是在頭string.h中定義的宏:

S.N. 宏觀與說(shuō)明
1 NULL
這個(gè)宏是一個(gè)空指針常量的值。

庫(kù)函數(shù)

以下是頭string.h中定義的功能:

S.N. 函數(shù)及說(shuō)明
1 void *memchr(const void *str, int c, size_t n)
搜索第一次出現(xiàn)的字符c(unsigned char類型)的前n個(gè)字節(jié)的字符串參數(shù)str指向。
2 int memcmp(const void *str1, const void *str2, size_t n)
比較str1和str2的前n個(gè)字節(jié)。
3 void *memcpy(void *dest, const void *src, size_t n)
從src復(fù)制n個(gè)字符到dest。
4 void *memmove(void *dest, const void *src, size_t n)
另一個(gè)函數(shù)來(lái)復(fù)制n個(gè)字符到str1。
5 void *memset(void *str, int c, size_t n)
復(fù)制字符c(unsigned char類型)的前n個(gè)字符的字符串參數(shù)str指向。
6 char *strcat(char *dest, const char *src)
追加src指向的字符串到dest指向的字符串的結(jié)束。
7 char *strncat(char *dest, const char *src, size_t n)
追加src指向字符串結(jié)尾的字符串指向dest中最多n個(gè)字符長(zhǎng)。
8 char *strchr(const char *str, int c)
搜索第一次出現(xiàn)的字符串中的字符c(unsigned char類型)參數(shù)str指向。
9 int strcmp(const char *str1, const char *str2)
比較字符串str1指向指向的字符串str2。
10 int strncmp(const char *str1, const char *str2, size_t n)
str1和str2的前n個(gè)字節(jié)相比。
11 int strcoll(const char *str1, const char *str2)
比較字符串str1的STR2。其結(jié)果是依賴于位置LC_COLLATE設(shè)置。
12 char *strcpy(char *dest, const char *src)
復(fù)制字符串src指向到dest。
13 char *strncpy(char *dest, const char *src, size_t n)
副本最多n個(gè)字符的字符串src指向到dest。
14 size_t strcspn(const char *str1, const char *str2)
計(jì)算str1的起始段的長(zhǎng)度完全包含在str2中的字符。
15 char *strerror(int errnum)
搜索一個(gè)內(nèi)部數(shù)組的錯(cuò)誤編號(hào)差錯(cuò)編號(hào),并返回一個(gè)指向一個(gè)錯(cuò)誤消息字符串。
16 size_t strlen(const char *str)
計(jì)算但不包括終止空字符的字符串str的長(zhǎng)度。
17 char *strpbrk(const char *str1, const char *str2)
查找字符串str1在str2中指定的任何字符相匹配的第一個(gè)字符。
18 char *strrchr(const char *str, int c)
參數(shù)str指向的字符串中的字符c(unsigned char類型)最后一次出現(xiàn)的搜索。
19 size_t strspn(const char *str1, const char *str2)
計(jì)算str1中的初始段完全包含在str2中的字符的長(zhǎng)度。
20 char *strstr(const char *haystack, const char *needle)
查找第一次出現(xiàn)的整個(gè)字符串針(不包括終止空字符)出現(xiàn)在字符串haystack中。
21 char *strtok(char *str, const char *delim)
中斷字符串str分隔分離成一系列的記號(hào)。
22 size_t strxfrm(char *dest, const char *src, size_t n)
轉(zhuǎn)換前n個(gè)字符的字符串src到校報(bào)的語(yǔ)言環(huán)境和將它們放置字符串dest。