c has a good set of functions for operating on char arrays. strtok() (not such a great page) is especially interesting