You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
431 B
C
19 lines
431 B
C
#ifndef PARSER_H
|
|
#define PARSER_H
|
|
|
|
#include <stdlib.h>
|
|
#include <stdio.h>
|
|
#include <string.h>
|
|
#include <stdbool.h>
|
|
|
|
size_t get_file_len(FILE *file);
|
|
char *load_file(const char *path);
|
|
char *get_next_line(char* buffer, bool clear);
|
|
char *get_next_token(char *buffer, char *delim, bool clear);
|
|
char *strip_all(char *str);
|
|
char *strip(char *str, char c);
|
|
char *cut_front(char *str, char c);
|
|
char *cut_back(char *str, char c);
|
|
|
|
#endif
|