2014年1月8日
摘要: 1 #include 2 #include 3 4 5 int strlen(const char *str) 6 { 7 int length=0; 8 while(*str++!='\0') 9 {10 length++; 11 }12 return length;13 }14 15 char *strcopy(char *dest,const char *source)16 {17 if(source==NULL)18 {19 printf("Error:StrSource is NULL \... 阅读全文
posted @ 2014-01-08 14:37 IronMan_ 阅读(419) 评论(4) 推荐(0) 编辑