Source code translated to english
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@697 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
46
io.h
46
io.h
@@ -19,48 +19,48 @@
|
||||
59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
word endian_magic16(word x);
|
||||
dword endian_magic32(dword x);
|
||||
word Endian_magic16(word x);
|
||||
dword Endian_magic32(dword x);
|
||||
|
||||
int read_byte(FILE *file, byte *Dest);
|
||||
int write_byte(FILE *file, byte b);
|
||||
int Read_byte(FILE *file, byte *dest);
|
||||
int Write_byte(FILE *file, byte b);
|
||||
|
||||
int read_bytes(FILE *file, void *Dest, size_t size);
|
||||
int write_bytes(FILE *file, void *Dest, size_t size);
|
||||
int Read_bytes(FILE *file, void *dest, size_t size);
|
||||
int Write_bytes(FILE *file, void *dest, size_t size);
|
||||
|
||||
int read_word_le(FILE *file, word *Dest);
|
||||
int write_word_le(FILE *file, word w);
|
||||
int read_dword_le(FILE *file, dword *Dest);
|
||||
int write_dword_le(FILE *file, dword dw);
|
||||
int Read_word_le(FILE *file, word *dest);
|
||||
int Write_word_le(FILE *file, word w);
|
||||
int Read_dword_le(FILE *file, dword *dest);
|
||||
int Write_dword_le(FILE *file, dword dw);
|
||||
|
||||
int read_word_be(FILE *file, word *Dest);
|
||||
int write_word_be(FILE *file, word w);
|
||||
int read_dword_be(FILE *file, dword *Dest);
|
||||
int write_dword_be(FILE *file, dword dw);
|
||||
int Read_word_be(FILE *file, word *dest);
|
||||
int Write_word_be(FILE *file, word w);
|
||||
int Read_dword_be(FILE *file, dword *dest);
|
||||
int Write_dword_be(FILE *file, dword dw);
|
||||
|
||||
void Extraire_nom_fichier(char *dest, const char *Source);
|
||||
void Extraire_chemin(char *dest, const char *Source);
|
||||
void Extract_filename(char *dest, const char *source);
|
||||
void Extract_path(char *dest, const char *source);
|
||||
|
||||
char * Position_dernier_slash(const char * Chaine);
|
||||
char * Find_last_slash(const char * str);
|
||||
|
||||
#if defined(__WIN32__)
|
||||
#define SEPARATEUR_CHEMIN "\\"
|
||||
#define PATH_SEPARATOR "\\"
|
||||
#else
|
||||
#define SEPARATEUR_CHEMIN "/"
|
||||
#define PATH_SEPARATOR "/"
|
||||
#endif
|
||||
|
||||
// Taille de fichier, en octets
|
||||
int FileLength(const char *fname);
|
||||
int File_length(const char *fname);
|
||||
|
||||
// Taille de fichier, en octets
|
||||
int File_length_file(FILE * file);
|
||||
|
||||
// Détermine si un file passé en paramètre existe ou non dans le
|
||||
// répertoire courant.
|
||||
int Fichier_existe(char * fname);
|
||||
int File_exists(char * fname);
|
||||
// Détermine si un répertoire passé en paramètre existe ou non dans le
|
||||
// répertoire courant.
|
||||
int Repertoire_existe(char * Repertoire);
|
||||
int Directory_exists(char * directory);
|
||||
|
||||
// Scans a directory, calls Callback for each file in it,
|
||||
void for_each_file(const char * Nom_repertoire, void Callback(const char *));
|
||||
void For_each_file(const char * directory_name, void Callback(const char *));
|
||||
|
||||
Reference in New Issue
Block a user