char a[] = "2ch";
for(int i = 0; i <= strlen(a); i++)
 f(a[i]);

これじゃだめなん?