I make a library in c for the string manipulation, and into the many functions I have one named "strsplit". This function works for split a string in multiples sri