Hi,
I want to print the memory data to a file and use the following code:
#include <stdio.h>
FILE *fp;
int i;
#if 1
fp = fopen("paket.txt", "w");
for (i = 0; i < (BlockSize); i++)
printf(fp, "%d\n", XmtBufferPt[i]);
fclose(fp);
#endif
And I got the following error message:
error: argument of type "FILE *" is incompatible with parameter of type "const char *"
How I can solve this issue?