Something stupid must be going on. I really can't figure what I am doing wrong
Code:
#include <stdio.h>
#include <glib.h>

int main(void)
{
    gchar *t="LeftSide:RightSide";
    g_strdelimit(t, ":", '|');
    printf("%s\n",t);
    return 0;
}
According to this :String Utility Functions it should work but the g-strdelimit gives segmentation fault according to gdb.