J
jacob navia
Chris said:Could you please clarify these?
Did you mean to add at the head, or at the tail,
At the tail
or somewhere in the
middle,
that would be
list_insert
that the list remain sorted by some user-specified sorting
function,
that would be
list_add_sorted
and should duplicates be permitted or removed?
A set of flags can be specified at list creation as
to how to insert things (with or without duplicates,
set/unset a sorting function that defaults to memcmp
and some options) but basically you need just little
of all that.
Oh, never mind, I'll just write the 10 line function that I need and
understand.
10 lines for the specs you yourself specified above?
I am giving just examples of generic functions that could be
used to
list_add
vector_add
hash_add
giving a generic, easy to remember interface. That was my point.