char list[250][64];

int f(int idx) { return (strlen(list[idx])); }



syntax highlighted by Code2HTML, v. 0.9.1