#include int slength(char s[]) { int i; i =0; while(s[i]!='\0') i = i+1; return i; } main(int argc,char ** argv) { char * q; q = "how long is this string?"; printf("%s: %d characters\n",q,slength(q)); }