bglibs: common.h Source File

- Main Page
- Modules
- Data Structures
- Files
- Directories
- Related Pages
- Examples

# adt/common.h

    00001 /* $Id: common.h 703 2006-07-27 18:35:10Z bruce $ */
    00002 #ifndef BGLIBS__ADT__COMMON__H__
    00003 #define BGLIBS__ADT__COMMON__H__
    00004
    00011 typedef unsigned long adt_hash_t;
    00013 typedef void adt_free_fn(void*);
    00017 typedef int adt_copy_fn(void*, const void*);
    00021 typedef int adt_cmp_fn(const void*, const void*);
    00023 typedef adt_hash_t adt_hash_fn(const void*);
    00024
    00026 adt_hash_t adt_hashb(const unsigned char*, unsigned long);
    00027
    00029 adt_hash_t adt_hashs(const unsigned char*);
    00030
    00032 adt_hash_t adt_hashsp(const char* const*);
    00034 int adt_cmpsp(const char* const* a, const char* const* b);
    00036 int adt_copysp(const char** a, const char* const* b);
    00038 void adt_freesp(const char** a);
    00039
    00042 #endif