Problem G: 【函数的指针参数】自定义字符串长度函数 my_strlen

Problem G: 【函数的指针参数】自定义字符串长度函数 my_strlen

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 402  Solved: 269
[Submit] [Status] [Web Board] [Creator:]

Description

编写自定义函数int my_strlen(char* s); 检测字符串s的长度

特别提示:不允许使用“string.h”中的strlen函数。

裁判程序如下:


Input

一行字符串(长度不超过100)。

Output

字符串的长度。

Sample Input Copy

abc
how are you?

Sample Output Copy

3
12

HINT