Reinventing the wheel in C. Implementing some string functions.