标签:style blog color ar sp div log bs as
1 //字符串的长度. 2 int 3 lenOfStr(char *s) { 4 char *p = s; 5 int len = 0; 6 while(*p++) 7 len++; 8 9 return len; 10 }
c - 字符串长度.
原文地址:http://www.cnblogs.com/listened/p/4058441.html