2017-10-25 18:35:04 +02:00
|
|
|
/*
|
|
|
|
* strhash.h
|
|
|
|
*
|
|
|
|
* Created on: 21.10.2017
|
|
|
|
* Author: julian
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef STRHASH_H_
|
|
|
|
#define STRHASH_H_
|
|
|
|
|
|
|
|
#include <stddef.h>
|
|
|
|
|
|
|
|
typedef size_t strhash_t;
|
|
|
|
|
|
|
|
// "rehash" string with new char added to end
|
2017-10-25 18:38:33 +02:00
|
|
|
strhash_t strhash_add(strhash_t hash, char c);
|
2017-10-25 18:35:04 +02:00
|
|
|
|
|
|
|
/// hash a given string
|
2017-10-25 18:38:33 +02:00
|
|
|
strhash_t strhash_str(const char * str);
|
2017-10-25 18:35:04 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif /* STRHASH_H_ */
|