Having issues splitting strings when using the strsep function

I’m very new to C programming and was trying to split a string through it’s delimiters using the strsep function. When executing the code below i get this output: Hostname ( teste-13-f8-04teste-13-fd-80) Hostname (teste-13-fd-80) Hostname (teste-13-fd-86) Hostname (teste-13-fd-90) Why is the AllHostName[0] giving that output? #include <stdio.h> #include <stdlib.h> #include <string.h> void splitStrings(char splitString[] ,… Read More Having issues splitting strings when using the strsep function