String handling is one of those computer programming chores that can be quite tricky. The problem is compounded by the fact that C does not have a set of built-in functions for dealing with strings.
Other languages, dating back to the original BASIC, manage, so why not C? In fact, the standard ANSI C implementation comes with a set of libraries - the so called standard libraries - and one such library contains functions for dealint with strings.
Since there are some functions which need a little discussion, I put together an article on the subject of the C string library. Not to be confused with more recent implementations which include the very implementation-specific CString class, this is a real back-to-basics C tutorial. Enjoy!
You can read the whole article here : Using the C String Library.