On 1 Feb 2003, [EMAIL PROTECTED] wrote: > You mean that glib 2.0 changed the semantics of the returned value > since 1.2.10? And that instead of returning the amount of chars > actually written (which is useful), it returns the amount of chars > that would have been written if the buffer was of infinite length > (which is generally useless)?
In short: yes. <URL:http://developer.gnome.org/doc/API/2.0/glib/glib-String-Utility-Functions.html#g-snprintf> And actually the latter is not useless, it is the value needed in most cases, because it is the amount of the memory to (re)alloc. -- Tommi Vainikainen ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Gtk-gnutella-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/gtk-gnutella-devel
