Saving a picture and loading it back works, but there are struct misalignment problems, asved file will NOT be compatible with other tools

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@91 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Adrien Destugues
2008-08-02 15:38:00 +00:00
parent aaf7bc09fa
commit 3bf7246855
5 changed files with 51 additions and 24 deletions

View File

@@ -71,10 +71,10 @@ int Fichier_existe(char * Fichier)
// Dtermine si un fichier pass en paramŠtre existe ou non dans le
// rpertoire courant.
{
struct stat* buf = NULL;
struct stat buf;
int Resultat;
Resultat=stat(Fichier,buf);
Resultat=stat(Fichier,&buf);
if (Resultat!=0)
return(errno!=ENOENT);
else