23 lines
504 B
C
23 lines
504 B
C
// INFO: INVALID SINCE SUBMISSION IS OVER
|
|
|
|
#include <fcntl.h>
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <unistd.h>
|
|
|
|
// BOOLEAN VALUES
|
|
enum {
|
|
TRUE = 1,
|
|
FALSE = 0,
|
|
ERR = -1,
|
|
};
|
|
|
|
void printer(const 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);
|