使用头文件里的string.h函数的strlen函数来对字符串长度的获取
例:
#include<stdio.h>
#include<string.h>
int main(){
char *string="A blind man who leans against a wall imagines that it''s the boundary of the world.";
int len=strlen(string);
printf("%d\n",len);
return 0;
}