@@ -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( |
|
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 |
General Comments 0
You need to be logged in to leave comments.
Login now