Re: GLIB Hash Data
- From: Mark Mielke <mark mark mielke cc>
- To: Ruben I Safir <ruben mrbrklyn com>
- Cc: Sven Neumann <sven gimp org>, Gtk-List <gtk-list gnome org>
- Subject: Re: GLIB Hash Data
- Date: Thu, 25 Apr 2002 14:02:05 -0400
On Thu, Apr 25, 2002 at 12:26:10PM -0400, Ruben I Safir wrote:
> > From the API reference:
> > g_strdup ()
> > gchar* g_strdup (const gchar *str);
> > Duplicates a string. The returned string should be freed when no
> > longer needed.
> > str : the string to duplicate.
> > Returns : a newly-allocated copy of str.
> I would just have documented that it creates a newly allocated
> string which safely allocates memory to a new memory location in the
> returned char pointer.
> Why did you paste the documentation which is already on line?
To show that it says exactly what you want it to say, just in a more
terse format.
> I have one more squestion. When compiling I get this warning:
> warning: passing arg 1 of `g_hash_table_new' from incompatible pointer type
> from this line: hTable = g_hash_table_new(HashFunction, HashCompare);
> Should I cast the function pointers to some type?
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]