grafX2/linux.c
Yves Rizoud dd984538bf Removed some old DOS code, unified (for gcc) the handling of file paths.
Probably fixed some linux issues there.
Fixed the filename search by typing in Save/load.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@196 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-10-04 21:56:02 +00:00

21 lines
370 B
C

// Diverses fonctions qui existaient sous dos mais pas sous linux...
#ifdef __linux__
#include <string.h>
#include <stdio.h>
#include <sys/stat.h>
int filelength(int fichier)
{
struct stat infos_fichier;
fstat(fichier,&infos_fichier);
return infos_fichier.st_size;
}
void itoa(int source,char* dest, int longueur)
{
snprintf(dest,longueur,"%d",source);
}
#endif