what this function is going to return is the name of the file test.jpg
the logic is a little wrong. if it did work it would be backwards.
anyways...
it prints out a bunch of unicode garbage at me.
how can i append characters to result as gchar or string?
Joined: 21 Sep 2005 Posts: 462 Location: Portland, OR USA
Posted: Sun Jul 02, 2006 10:17 pm Post subject:
The 2 things I would say are first, to allocate memory for the result string (such as using g_new() or g_new0()).
Secondly, the result+=uri[i] seems funny to me. Are you appending a character? You might want to have another variable counting from 0 up and do something like result[j] = uri[i];
If you're trying to get just the filename of a path, try using g_path_get_basename:
i was very suprised to see someone respond to my question.. it doent seem like anyone realy uses this forum. in fact i stop check back here month ago. and one day, after going through old bookmarks, i said 'hey lets see if anyone replyed to my question', and here i am.
so thank you very much.
Note: gchars end in zero. dont forget to put that when your trying something like this.
Joined: 21 Sep 2005 Posts: 462 Location: Portland, OR USA
Posted: Mon Aug 28, 2006 1:03 am Post subject:
np.
Yeah, these forums aren't exactly "catching on" but... who knows. Ain't costing me much to have them up and I'm always here to try and answer a question.
Joined: 21 Sep 2005 Posts: 386 Location: Fairfax, Virginia
Posted: Wed Aug 30, 2006 1:17 am Post subject:
I'm just waiting for them to catch on! I've consistently checked them a few times a week since you announced it on the GTK+ list. I still do the same thing with gnomedev.com as well. I just have problems giving up on things, LOL.