摘要: char *strcpy(char *strdest, const char *str){ assert(strdest!=NULL);' assert(str != NULL) while(*strdest++ = *str++); return strdest;}int main() { char str[10]; strcpy(str, "abcd"); printf("%s\n", str); } 2.strcmp#include int strcmp(const char *src... 阅读全文
posted @ 2014-03-24 17:47 elroyzhang 阅读(169) 评论(0) 推荐(0) 编辑