私は C の初心者で、「e-mail id OR ipv4/6-address」に基づいて高速ルックアップを行う必要があるという要件があります。
私の構造は次のようになります
{
enum_usr_type ;/*(which can be either e-mail type or ip-address type)*/
char_id_data ; /*(which can be either a email-id string OR ipv4/6 ip-address string) */
}
完全なデータベースのサイズは 1K になると予想されます。
誰もが私がそれを行う方法へのポインタを提案できますか(おそらく hash table ですが、私はよく知りません)。