##// END OF EJS Templates
modification fonction lecture_file_sm()
thomas -
r1:323f9b4b5db0 default
parent child
Show More
@@ -1,11 +1,11
1 #include <file_utilities.h>
1 #include <file_utilities.h>
2
2
3 int lecture_file_sm()
3 int lecture_file_sm(const char * fileName)
4 {
4 {
5 unsigned int i;
5 unsigned int i;
6
6
7 FILE *infile;
7 FILE *infile;
8 infile = fopen("sm_test1.dat", "rb"); // open explicitely a binary file !!! ...
8 infile = fopen(fileName, "rb"); // open explicitely a binary file !!! ...
9 if(infile == NULL) {
9 if(infile == NULL) {
10 printf("Hello I cannot open the file!\n");
10 printf("Hello I cannot open the file!\n");
11 return 0;
11 return 0;
@@ -8,6 +8,6 extern float compressed_spectral_matrix_
8 extern unsigned char LFR_BP1_F0[ ];
8 extern unsigned char LFR_BP1_F0[ ];
9 extern unsigned char LFR_BP2_F0[ ];
9 extern unsigned char LFR_BP2_F0[ ];
10
10
11 int lecture_file_sm();
11 int lecture_file_sm(const char *fileName);
12
12
13 #endif // FILE_UTILITIES_H
13 #endif // FILE_UTILITIES_H
@@ -12,7 +12,7 int main(void)
12 {
12 {
13 printf("Hello World!\n");
13 printf("Hello World!\n");
14
14
15 lecture_file_sm();
15 lecture_file_sm("sm_test1.dat");
16
16
17 BP1_set();
17 BP1_set();
18
18
@@ -3,6 +3,7 CONFIG += console
3 CONFIG -= app_bundle
3 CONFIG -= app_bundle
4 CONFIG -= qt
4 CONFIG -= qt
5
5
6 #
6 DEFINES += DEBUG_TCH
7 DEFINES += DEBUG_TCH
7
8
8 SOURCES += main.c \
9 SOURCES += main.c \
General Comments 0
You need to be logged in to leave comments. Login now