#include <h/utils.h>
#include <stdio.h>
#include <ctype.h>
+#include <stdbool.h>
enum threestate {
*/
static enum threestate is_falted(FILE *);
static size_t copyname(char *, char *);
-static int is_separator(char *);
+static bool is_separator(char *);
/*
return strlen(dst);
}
-static int
+static bool
is_separator(char *line)
{
/*
while (*line == '-') {
line++;
}
- if (strcmp("\n", line)==0) {
- return 1;
+ if (strcmp("\n", line) == 0 || strcmp("\r\n", line) == 0 ) {
+ return true;
}
- return 0;
+ return false;
}