début fichier
This commit is contained in:
@@ -3,12 +3,6 @@
|
||||
#include <sys/stat.h>
|
||||
#include <string.h>
|
||||
|
||||
void creerProjet(char chemin[]){
|
||||
mkdir(chemin, 0777);
|
||||
// Remarque : faudra sûrement encadrer tout ça par un test pour savoir si ça s'est bien passé, mais passons.
|
||||
char* samples;
|
||||
strcpy(samples,chemin);
|
||||
strcat(samples,"samples/");
|
||||
mkdir(chemin, 0777);
|
||||
// C'est pas fini mais je vais au pieux.
|
||||
void sauverProjet(char chemin[], Sample* smpl[], Instrument* inst[], Motif* liste, Motif* melodie[]) {
|
||||
FILE* fichier = fopen(chemin, "w");
|
||||
}
|
||||
|
||||
@@ -4,12 +4,12 @@
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
|
||||
void creerProjet(char chemin[]);
|
||||
void creerProjet(char chemin[], Sample* smpl[], Instrument* inst[], Motif* liste, Motif* melodie[]);
|
||||
|
||||
void chargerProjet(char chemin[]);
|
||||
void chargerProjet(char chemin[], Sample* smpl[], Instrument* inst[], Motif* liste, Motif* melodie[]);
|
||||
|
||||
void sauverProjet(char chemin[]);
|
||||
void sauverProjet(char chemin[], Sample* smpl[], Instrument* inst[], Motif* liste, Motif* melodie[]);
|
||||
|
||||
void copierProjet(char chemin[]);
|
||||
void copierProjet(char chemin[], Sample* smpl[], Instrument* inst[], Motif* liste, Motif* melodie[]);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user