Re: g_string_new_len(const gchar *, GSSIZE) (glib-2.0)



On Sat, Mar 23, 2002 at 12:18:26PM -0500, Havoc Pennington wrote:
> Mark Mielke <mark mark mielke cc> writes:
> > If the GString structure uses gsize, why does g_string_new_len() use
> > gssize?
> Because conventionally whenever you pass in a "len" in glib/gtk, you
> can pass "-1" to mean "nul-terminated, do a strlen() for me"

Sorry... it was a dum question on my part... for some reason I thought
I read "gssize" = "g short size", instead of "gssize" = "g signed size".

31 bit size is quite sufficient for the next 10 years...

Thanks for the response to clear me up on that... :-)
mark

-- 
mark mielke cc/markm ncf ca/markm nortelnetworks com __________________________
.  .  _  ._  . .   .__    .  . ._. .__ .   . . .__  | Neighbourhood Coder
|\/| |_| |_| |/    |_     |\/|  |  |_  |   |/  |_   | 
|  | | | | \ | \   |__ .  |  | .|. |__ |__ | \ |__  | Ottawa, Ontario, Canada

  One ring to rule them all, one ring to find them, one ring to bring them all
                       and in the darkness bind them...

                           http://mark.mielke.cc/




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