summaryrefslogtreecommitdiff
path: root/misc.h
blob: 9d07f81e880de8d9cea4d0bb6d5e30603c6a2c4c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#ifndef MISC_H
#define MISC_H

extern char *read_file(const char *filename, long *size);
extern char *get_line(char **str);
extern char *make_str(const char *str);
extern char *dir_path_num(const char *root, int num);
extern char *dir_path_name(const char *root, char *name);
extern int delm_span(char *str, const char delm);
extern int sanitize_strlen(char *str);
extern char *sanitize_str(char *str);
extern char *find_alpha(const char *str);
extern char *create_num_str(const char *str, int num);
extern int format_len(const char *fmt, ...);
#endif