I need some help with debugging this problem. I just started learning how to store files at C but I can't seem to check if this code is correct since I can't compile it well. Might anyone help me point out the problems in my code?
include <stdio.h>
include <stdlib.h>
include <string.h>
typedef char string25[26];
struct nodeTag;
{
nameType sData;
struct nodeTag *pLink;
}
typedef struct nodeTag *ptrNode;
int main()
{
FILE pFile;
ptrNode pFirst = NULL,pRun;
/get inputs for linked list/
if(pFile=fopen("words.txt","wb"))!=NULL)
{
pRun = pFirst;
while(pRun != NULL)
{
fwrite(&pRun->sData,sizeof(nameType),1,pFile);
pRun=pRun->pLink;
}
fclose(pFile);
/free linked list*/
return 0;
}