填空题

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

【参考答案】

*(str+I)或str[I]