// 不用任何其它全局变量和局部变量来用C语言实现strlen() int myStrlen ( const char *str ) { return (*str) ? (1 + myStrlen(str++)) : 0 ;}//该片段来自于http://www.codesnippet.cn/detail/2301201511600.html
来源: http://www.codesnippet.cn/detail/2301201511600.html