I have a char array contains string separated by null. I have the indexes for the strings present in the char aarray. How to read string from this char array using index and are separated by null.
e.g. I have following char array,
char *buf = ['\0', 'b', 'c', 's', '\0', 'n', 'e', 'w', '\0', 'n', 'x', 't', '\0'];
I have the indexes for these strings e.g index 1 for bcs string index 5 for new string index 9 for nxt string
How read these string using index from this char array?