There are several things that are not good in your program.
Firstable, are you sure you are openning properly the file "email.txt" ?
Then, this part of the code is wrong, you cannot define a function inside a function, especially if this function already exist in a library:
char* fgets(char* emailx){
return emailx;
}
maybe you should try something like
emailx = fgets(emailx);
But first you should declare your variable.
I ve never used those functions so I don t know how it works precisely, but chek the manual.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…