Re: g_string_insert_c
- From: Tim Müller <t i m zen co uk>
- To: Neil Zanella <nzanella gmail com>, gtk-list gnome org
- Cc:
- Subject: Re: g_string_insert_c
- Date: Sat, 27 Nov 2004 14:51:50 +0000
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'
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]