Claude Chappe' Curse - A C Game
Logo Institut d'Informatique Claude Chappe Logo Université de Le Mans Logo Raeptor Production
 
Loading...
Searching...
No Matches
osio.h
Go to the documentation of this file.
1#pragma once
2#include <io/dirent.h>
3
30int osio_save_file(char *path, char *relativePath, char *filter);
31
45int osio_open_file(char *path, char *relativePath, char *filter);
46
57int osio_print_error(char *msg);
58
68int update_cwd();
69
81int absolute_path_to_relative(char *path);
82
96int osio_find(dirent_t ***namelist, const char * path, int (*filter)(const dirent_t *entry));
97
// end of OSIO group
struct dirent dirent_t
Definition dirent.h:26
int osio_open_file(char *path, char *relativePath, char *filter)
Opens a file from the specified path with a given filter.
Definition osio.c:185
int osio_save_file(char *path, char *relativePath, char *filter)
Saves a file to the specified path with a given filter.
Definition osio.c:163
int update_cwd()
Updates the current working directory.
Definition osio.c:232
int absolute_path_to_relative(char *path)
Converts an absolute file path to a relative path.
Definition osio.c:282
int osio_find(dirent_t ***namelist, const char *path, int(*filter)(const dirent_t *entry))
Finds files in a directory that match a given filter.
Definition osio.c:223
int osio_print_error(char *msg)
Prints an error message to the standard error output.
Definition osio.c:206