aboutsummaryrefslogtreecommitdiffstats
path: root/util.h
blob: bd9e54c6634ef34fe8def07497872473fdb45f0d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef __UTIL_H
#define __UTIL_H

#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <stdatomic.h>
#include <sys/types.h>
#include <sys/stat.h>

int uniq_id();
char *alloc_new_str_s(char *str, size_t size);
char *alloc_new_str(char *str);
off_t file_size(const char *fname);

#endif