compiler is complaining for this string hash function I found online:
error: invalid conversion from 'void*' to 'unsigned char*'
Code://FNV string hash fcn (src:http://eternallyconfuzzled.com/tuts/algorithms/jsw_tut_hashing.aspx) unsigned fnv_hash ( void *key, int len )//Q: how do I use generic ptr key? { unsigned char* p = key; unsigned h = 2166136261U; int i; for ( i = 0; i < len; i++ ) h = ( h * 16777619 ) ^ p[i]; return h; }