Strcat,strcpy,strcmp,Strlen函數原型
http://blog.sina.com.cn/s/blog_66a61f310100i5fk.html
atof():將字符串轉換為雙精度浮點型值。
atoi():將字符串轉換為整型值。
atol():將字符串轉換為長整型值。
strtod():將字符串轉換為雙精度浮點型值,並報告不能被轉換的所有剩余數字。
strtol():將字符串轉換為長整值,並報告不能被轉換的所有剩余數字。
strtoul():將字符串轉換為無符號長整型值,並報告不能被轉換的所有剩余數字。
原型:extern int isspace(int c)
#include <ctype.h>
isspace函數,是一種計算機用語,主要用於檢查參數c是否為空格字符。
說明:當c為空白符時,返回非零值,否則返回零。(空白符指空格、水平制表、垂直制表、換頁、回車和換行符。)
atoi函數原型:
#include <stdio.h> #include <stdlib.h> int atoi(char *str) { int value = 0; while(*srt > '0' && *str < '9') { value = value*10 + (*str - '0');
str++ } return value; }