2021-12-10 12:41:36 -08:00
|
|
|
#ifndef LIBFLINT_INPUT_H
|
|
|
|
#define LIBFLINT_INPUT_H
|
|
|
|
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
2023-12-15 13:08:22 -08:00
|
|
|
unsigned char *get_binary(const char *, size_t *fsz);
|
2023-05-03 14:40:57 -07:00
|
|
|
|
2021-12-10 12:41:36 -08:00
|
|
|
char *get_input(const char *);
|
2022-03-28 10:52:16 -07:00
|
|
|
|
2021-12-10 14:33:37 -08:00
|
|
|
char **split(char *, size_t *, const char *);
|
2022-03-28 10:52:16 -07:00
|
|
|
|
2021-12-10 12:41:36 -08:00
|
|
|
char **get_lines(const char *, size_t *);
|
2022-03-28 10:52:16 -07:00
|
|
|
|
2021-12-10 12:41:36 -08:00
|
|
|
int *get_ints(const char *, size_t *);
|
2022-03-28 10:52:16 -07:00
|
|
|
|
2021-12-10 12:41:36 -08:00
|
|
|
void del_split(char **);
|
2022-03-28 10:52:16 -07:00
|
|
|
|
2021-12-10 12:41:36 -08:00
|
|
|
void del_lines(char **);
|
|
|
|
|
2024-07-09 21:03:23 +00:00
|
|
|
#define DEFAULT_CAPTURE_SYSTEM_BUFSIZE 1024
|
|
|
|
|
|
|
|
const char *capture_system(const char *cmd, int buf_sz);
|
|
|
|
|
2021-12-10 12:41:36 -08:00
|
|
|
#endif // LIBFLINT_INPUT_H
|