Are you referring to a function like g_strsplit() in which the array of strings is terminated with NULL? If so, then your only problem is that you're using o and output... two different variables.
Try this:
Code:
#include <gtk/gtk.h>
int main()
{
gchar** o = g_strsplit ("apple:orange:bananna",":",-1);
gint i=0;
while(o[i] != NULL)
{
g_print("%s\n",o[i]);
i++;
}
return 0;
}
If you compile that and run it, you should get three lines printed, "apple", "orange", and "bananna".