Commit dcb54932 authored by Florian Kaltenberger's avatar Florian Kaltenberger

bugfix in file_output.c


git-svn-id: http://svn.eurecom.fr/openair4G/trunk@5791 818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent 096d3df4
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment