#67437 - linus - Wed Jan 18, 2006 1:59 am
hello, i have the following bit of code:
and everything works fine but the buffer contains the old data - how can i clear it?
Code: |
while (length > curPos) { char *buffer = (char*) malloc(32); FAT_fread(buffer, 32, 1, fp); PA_OutputSimpleText(0,0,j++, buffer); curPos = fp->curPos; free(buffer); //PA_OutputText(0,0,j++,"%d bytes read", result); } |
and everything works fine but the buffer contains the old data - how can i clear it?