DSPRelated.com
Forums

Problem with fgetc and fputc

Started by p4pr...@gmail.com March 11, 2008
Hi all,

i have been working on FILE I/O operation in C55x and CCS v3.1 and faced the problem with the fgetc and fputc. When i use the fputc it returns "-1".
But whn i creat a project with small functionality thn the code works fine. Can anyone help in knowing wat could be the problem.

Thanks a lot in advance,
Regards,
-Prassi
Check Out Industry's First Single-Chip, Multi-Format, Real-Time HD Video Transcoding Solution for Commercial & Consumer End Equipment: www.ti.com/dm6467
Hi,
Increase the heap size in the .cmd file and try.

Regards,
sravanthi

On Tue, 11 Mar 2008 p...@gmail.com wrote :
>Hi all,
>
> i have been working on FILE I/O operation in C55x and CCS v3.1 and faced the problem with the fgetc and fputc. When i use the fputc it returns "-1".
> But whn i creat a project with small functionality thn the code works fine. Can anyone help in knowing wat could be the problem.
>
>Thanks a lot in advance,
>Regards,
>-Prassi
SRAVANTHI
Check Out Industry's First Single-Chip, Multi-Format, Real-Time HD Video Transcoding Solution for Commercial & Consumer End Equipment: www.ti.com/dm6467