g_strndup()
- From: "David C. Mason" <dcm redhat com>
 
- To: gtk-doc-list gnome org
 
- Subject: g_strndup()
 
- Date: 23 Jun 2000 14:43:42 -0400
 
Hi guys,
Robey Pointer from Eazel pointed this out to me...
> The glib documentation states that for g_strndup(), "n" must be less
> than or equal to the length of the original string.  That's not
> true: "n" can be greater than the length of the string.  More memory
> will be allocated than you necessarily needed, but the returned
> string will be of length <= n, and it will be null terminated, so
> the end result is success.
Is this correct? Should we update as such?
Dave
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]