texdepends/strhash.h
2017-10-25 18:35:04 +02:00

24 lines
341 B
C

/*
* 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
strhash_t hash_add(strhash_t hash, char c);
/// hash a given string
strhash_t hash_str(const char * str);
#endif /* STRHASH_H_ */