[utils] is_relative_path

This commit is contained in:
Al
2015-03-11 17:31:08 -04:00
parent 5157a0fd8b
commit a5f7c73374
2 changed files with 7 additions and 0 deletions

View File

@@ -32,6 +32,10 @@ char *file_getline(FILE * f)
return ret;
}
bool is_relative_path(struct dirent *ent) {
return strcmp(ent->d_name, ".") == 0 || strcmp(ent->d_name, "..") == 0;
}
bool file_read_int32(FILE *file, int32_t *value) {
unsigned char buf[4];