1) char* ptr; might not work with all compilers.
either char * ptr; or char *ptr;
2) K&R rocks, that along with the c99 standard is all you need.
3) ptr is nice, do not use underscores and no shitty names like ``text'' or ``string''. Try buf, buffer, p, s, ptr, bufptr, etc.