AnsweredAssumed Answered

fopen error

Question asked by Deco on May 14, 2013
Latest reply on May 16, 2013 by CraigG

Hi,

 

I'm using ADSP-21489 and attempting to create/write to a file to be used for logging purposes. I tried using fopen but I got a "cannot open file" error.

file is NULL. I looked at fopen.c under Analog Devices\VisualDSP 5.0\214xx\lib\src\libio_src and it looks like malloc may not be working correctly. Has anyone seen this problem ? Could offer any suggestions?

 

  FILE* file = fopen("test123.txt", "w");

   if(file==0)

   {

     fclose(file);

   }

 

Thanks!

Outcomes