In order to not modify htab_find, I store the hash index of the strings in their value field. See htab_add_str.