int strlen(const char *str) { const char *eos = str; assert(str); while(*eos++) { ; } return ((int)(eos - str - 1));//指针减指针为它们之间的元素个数 } char * strncpy(char *dst,const char *src,int count) { char *start = dst; assert(dst); assert(src); while(count-- ...