填空题

mysulen函数的功能是计算str所指字符山的长度,并作为函数值返回。请填空。
int mystrlen(Char *str)
int i;
fori=0; !=’\0’;i++);
return(______);

【参考答案】

*(srt+i)或str[i]
i