[c] Finding length of char array