Re: g_string_insert_c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Saturday 27 November 2004 02:42, Neil Zanella wrote:

> I would like to know whether g_string_insert_c inserts the character before
> the character at the specified position or after. The documentation does
> not mention this but I think it should be more specific.

I bet it would have been faster to type and compile

#include <glib.h>
int main (int a, char **b)
{
 GString *s = g_string_new ("01234");
 g_string_insert_c (s, 1, '_');
 g_print ("s = '%s'\n", s->str);
 return 0;
}

than it was to type your message and send it to the list .... ;-)

Cheers
 -Tim

PS: The output is: s = '0_1234'

_______________________________________________

gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux