house/phase2/tome_utils.h

21 lines
450 B
C

#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
// BOOLEAN VALUES
enum {
TRUE = 1,
FALSE = 0,
ERR = -1,
};
void printer(char *str);
int get_fd(char *filename, int mode);
int newlineexists(const char *str);
char *tome_reader(int fd);
char *before_nl(const char *str);
char *after_nl(char *str);
char *read_content(int fd, char *buf, char *temp, char *str);
char *concat(char const *string1, char const *string2);