bugfix in file_output.c
git-svn-id: http://svn.eurecom.fr/openair4G/trunk@5791 818b1a75-f10b-46b9-bf7c-635c3b92a50f
This commit is contained in:
@@ -32,6 +32,7 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
|
||||
int write_output(const char *fname,const char *vname,void *data,int length,int dec,char format) {
|
||||
|
||||
FILE *fp;
|
||||
@@ -48,7 +49,6 @@ int write_output(const char *fname,const char *vname,void *data,int length,int d
|
||||
else if (format != 10 && format !=11 && format != 12 )
|
||||
{
|
||||
fp = fopen(fname,"w+");
|
||||
fprintf(fp,"%s = [",vname);
|
||||
}
|
||||
|
||||
|
||||
@@ -58,6 +58,8 @@ int write_output(const char *fname,const char *vname,void *data,int length,int d
|
||||
return(-1);
|
||||
}
|
||||
|
||||
if (format != 10 && format !=11 && format != 12 )
|
||||
fprintf(fp,"%s = [",vname);
|
||||
|
||||
|
||||
switch (format)
|
||||
|
||||
Reference in New Issue
Block a user