is there a function in string.h for substrings on a an array of characters?