File: hash.h

package info (click to toggle)
ceccomp 4.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,648 kB
  • sloc: ansic: 6,531; python: 1,078; makefile: 248; sh: 145
file content (19 lines) | stat: -rw-r--r-- 358 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef HASH_H
#define HASH_H

#include "main.h"
#include <stddef.h>
#include <stdint.h>

typedef string_t hkey_t;

// return 0 if successfully inserted; -1 for ENOMEM; 1 for duplicated key
extern int insert_key (hkey_t *key, uint16_t line_nr);

extern uint16_t find_key (hkey_t *key);

extern void init_table (void);

extern void free_table (void);

#endif