文字列の長さを取得する
size_t strlen( const char *string );
サンプルです。
#include <stdio.h>
#include <string.h>
#include <conio.h>
int main()
{
char buf[256] = "Hello world";
int len;
len = strlen( buf );
printf("%s\n", buf);
printf( "%d バイト\n", len );
getch();
return 0;
}