Helixis 1.0
Task Programming API
Defines | Functions
includes/hlx/tools.h File Reference

Go to the source code of this file.

Defines

#define HLX_UNUSED(Param)   (void)(Param)

Functions

unsigned long hlx_hash (const char *str)

Define Documentation

#define HLX_UNUSED (   Param)    (void)(Param)

Definition at line 38 of file tools.h.

Referenced by _hlx_event_register_callback_with_group().


Function Documentation

unsigned long hlx_hash ( const char *  str)

Compute an hash code with the given string

Parameters:
strThe string.
See also:
hlx_event_handler_create()
hlx_chan_create()
Returns:
The hash code.

Definition at line 43 of file builtins.c.

{
        unsigned long   hash;
        int                             c;

        hash = 5361;
        while (*str)
        {
                c = *str;
                hash = (hash << 5) + hash + c;
                ++str;
        }
        return (hash);
}
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines