码迷,mamicode.com
首页 >  
搜索关键字:strlen三种实现方式    ( 1个结果
模拟strlen的三种实现方式
#include<stdio.h>#include<stdlib.h>#include<assert.h>#include<stdio.h>#include<stdlib.h>#include<assert.h>intmy_strlen(constchar*p){intcount=0;assert(p!=NULL);while(*p){count++;p++;}returncount;}//遍历字符串intmy_strlen_2..
分类:其他好文   时间:2015-09-08 07:16:33    阅读次数:139
1条  
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!