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
21 lines
370 B
C
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
|