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 File Reference

File operations and error handling for the project. More...

#include <io/dirent.h>
Include dependency graph for osio.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int osio_save_file (char *path, char *relativePath, char *filter)
 Saves a file to the specified path with a given filter.
 
int osio_open_file (char *path, char *relativePath, char *filter)
 Opens a file from the specified path with a given filter.
 
int osio_print_error (char *msg)
 Prints an error message to the standard error output.
 
int update_cwd ()
 Updates the current working directory.
 
int absolute_path_to_relative (char *path)
 Converts an absolute file path to a relative path.
 
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.
 

Detailed Description

File operations and error handling for the project.

This header file contains declarations for functions that handle file saving, opening, error printing, and path manipulations.