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:
6
linux.c
6
linux.c
@@ -1,5 +1,6 @@
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
void _splitpath(char* Buffer, char* Chemin, char* Nom_Fichier)
|
||||
{
|
||||
@@ -19,8 +20,9 @@ void _splitpath(char* Buffer, char* Chemin, char* Nom_Fichier)
|
||||
|
||||
int filelength(int fichier)
|
||||
{
|
||||
printf("filelenght non implémenté!\n");
|
||||
return 0;
|
||||
struct stat infos_fichier;
|
||||
fstat(fichier,&infos_fichier);
|
||||
return infos_fichier.st_size;
|
||||
}
|
||||
|
||||
void itoa(int source,char* dest, int longueur)
|
||||
|
||||
Reference in New Issue
Block a user