wolkykim / qlibc

qLibc is a simple and yet powerful C library providing generic data structures and algorithms.
http://wolkykim.github.io/qlibc
Other
984 stars 167 forks source link

Hashtable with non-string keys #74

Closed Pascal-Ortiz closed 4 years ago

Pascal-Ortiz commented 4 years ago

From qhashtbl.c:

qhashtbl implements a hash table, which maps keys to values. Key is a unique string and ...

Does it mean for instance, that a hash table with int keys is not supported?

wolkykim commented 4 years ago

no, int type for the key isn't supported but needs string conversion.

On Sun, Aug 9, 2020 at 4:17 AM Pascal Ortiz notifications@github.com wrote:

From qhashtbl.c:

qhashtbl implements a hash table, which maps keys to values. Key is a unique string and ...

Does it mean for instance, that a hash table with int keys is not supported?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/wolkykim/qlibc/issues/74, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABUKQMONHSNOX6OUL7YPRZDR72AUBANCNFSM4PZEOWFA .