hash.c

ds2.9a10/fluffos-2.14-ds06/hash.c · 229 B

From the archive ds2.9a10.zip

Download the archive   « Back to the archive contents

#define EDIT_SOURCE
#define NO_SOCKETS
#define NO_OPCODES

#include "std.h"
#include "hash.h"

unsigned int whashstr (const char * s)
{
    unsigned long __h = 0;
    for ( ; *s; ++s)
      __h = 37 * __h + *s;
    return __h;
}

Site Stats

Snippets: 1791
Codebases: 571