Basic strings manipulation in C