#include <stdio.h>
#include <wTypes.h>
int mystrlen(char *mystr)
{
int sum=0;
while(*mystr++ != '\0')
{
sum++;
}
return sum;
}
int main (int argc, char *argv[])
{
char *str="fghfgh";
printf("mystrlen: %d",mystrlen(str));
return 0;
}
[
本帖最后由 findugs 于 2009-9-27 11:17 编辑 ]