#include #include int StringLenB(char *s) { int i; i = strlen(s); return i; } int main(void) { char *s; int i; printf("文字列を入力してください。:"); scanf("%s", s); i = StringLenB(s); printf("文字列のバイト数は%dです。", i); return 0; }