Problem with g:strsplit
- From: "Janos Blazi" <jblazi vipsurf de>
- To: <gtk-list gnome org>
- Subject: Problem with g:strsplit
- Date: Sat, 12 May 2001 13:28:51 +0200
I am starting with gtk+.
So my first try is the following program:
-----------------------------------------------------------------------
#include <stdio.h>
#include "glib.h"
main()
{
gint64 x,y;
gchar **l;
printf("==> %s\n\n",g_strjoin("*","Hallo", "mein", "Name", "ist",NULL));
l=g_strsplit("Hello my name is Smith" , " " , 10);
for(x=0;x<10;x++)
printf("%d: %s\n",x,*(l+x));
}
-----------------------------------------------------------------------
The problem is, the g_strjoin function works as it should but the g_strplit
function does not. The array l is filled with NULLs (and the output of that
is
0 (NULL)
1 (NULL)
etc.
I am using MVC 6.0.
Can somebody help me?
Janos Blazi
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]