22 lines
322 B
C
22 lines
322 B
C
#ifndef UTILS_H
|
|
# define UTILS_H
|
|
|
|
# include <stdint.h>
|
|
# include <stdio.h>
|
|
|
|
char *
|
|
read_line(FILE *f);
|
|
|
|
int8_t
|
|
starts_with(const char *str, const char *prefix);
|
|
|
|
char *
|
|
extract_fence_ext(const char *fence);
|
|
|
|
const char *
|
|
extract_file_ext(const char *path);
|
|
|
|
const char *
|
|
infer_ext_from_filename(const char *path);
|
|
|
|
#endif
|