![]() |
Helixis 1.0
Task Programming API
|
Go to the source code of this file.
Defines | |
| #define | HLX_UNUSED(Param) (void)(Param) |
Functions | |
| unsigned long | hlx_hash (const char *str) |
| #define HLX_UNUSED | ( | Param | ) | (void)(Param) |
Definition at line 38 of file tools.h.
Referenced by _hlx_event_register_callback_with_group().
| unsigned long hlx_hash | ( | const char * | str | ) |
Compute an hash code with the given string
| str | The string. |
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);
}
1.7.4