texdepends/strhash.h

24 lines
347 B
C
Raw Permalink Normal View History

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
strhash_t strhash_add(strhash_t hash, char c);
2017-10-25 18:35:04 +02:00
/// hash a given string
strhash_t strhash_str(const char * str);
2017-10-25 18:35:04 +02:00
#endif /* STRHASH_H_ */