B
Beagle
Folks,
Any recommendations for a link list implementation C source with
sorting, searching, insert and deleting by key? I need to keep track
of many {unsigned int process id (pid), unsigned int file descriptors
(fd)} tuples, and want to store them in a linked list. I want to be
able to search by the pid quickly (e.g. O(lg)), insert, and delete
also by pid as the key. Prior I had been using a hash table (taken
from google codesearch), but the possibility of the key hash mapping
to the same value would crash my program.
Thanks,
BEA
Any recommendations for a link list implementation C source with
sorting, searching, insert and deleting by key? I need to keep track
of many {unsigned int process id (pid), unsigned int file descriptors
(fd)} tuples, and want to store them in a linked list. I want to be
able to search by the pid quickly (e.g. O(lg)), insert, and delete
also by pid as the key. Prior I had been using a hash table (taken
from google codesearch), but the possibility of the key hash mapping
to the same value would crash my program.
Thanks,
BEA