>>353
char *str;
strstr(str,"\0")-str; とかは?