[Top][All Lists]

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


From: John Darrington
Subject: hash.c
Date: Mon, 22 Nov 2004 08:55:36 +0800
User-agent: Mutt/1.3.28i

/* Makes and returns a copy of the pointers to the data in H.
   The returned data consists of hsh_count(H) non-null pointers,
   in no particular order, followed by a null pointer.  The hash
   table is not modified.  The caller is responsible for freeing
   the allocated data. */
void ** hsh_data_copy (struct hsh_table *h) ;

This only does shallow copies.

Can we make it take an optional parameter which is a pointer to a
function which does the copy?  That way hashes of objects which
contain pointers to dynamic data can be copied as deep copies.


PGP Public key ID: 1024D/2DE827B3 
fingerprint = 8797 A26D 0854 2EAB 0285  A290 8A67 719C 2DE8 27B3
See or any PGP keyserver for public key.

Attachment: pgpJp9TZfjgRO.pgp
Description: PGP signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]