summaryrefslogtreecommitdiff
path: root/utils.h
blob: 8aecde35dac8ab13aeba45351bf87288894737e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
#ifndef UTIL_H
#define UTIL_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