summaryrefslogtreecommitdiff
path: root/utils.h
blob: d7688c7e00978ec3d9cab6df7c9af99ce4095cbf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#ifndef UTIL_H
#define UTIL_H

#include <stddef.h>

#define ABS(x) ((x) >= 0 ? (x) : -(x))

char *str_delete_at(const char *str, const int pos);
size_t str_count_occ(const char *str, const char ch);

int int_rand(const int bound_l, const int bound_u);

#endif