Re: g_malloc overhead
- From: Martín Vales <martin opengeomap org>
- To: Tor Lillqvist <tml iki fi>
- Cc: gtk-devel-list gnome org, gtk-app-devel-list gnome org, Maciej Piechotka <uzytkownik2 gmail com>
- Subject: Re: g_malloc overhead
- Date: Thu, 29 Jan 2009 18:46:02 +0100
Tor Lillqvist escribió:
What is wrong with:
gchar* g_utf8_strncpy (gchar *dest,const gchar *src,gsize n);
It isn't needed. The nice thing about UTF-8 is that strings in UTF-8
can be handled with normal C str* functions just fine.
this function it really exist :-[ .
http://library.gnome.org/devel/glib/unstable/glib-Unicode-Manipulation.html#g-utf8-strncpy
n is the number of "real" chars not the number of bytes.
regards.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]