fprint I do not think you have any problem knowing it, it allows the output of printf can be written to any file.
fprint Programmers often use it to print errors, but
it can work with any open file with the fopen function.
stderr is a way to print bugs, stderr contains the possible errors that the user wants to report .
stderr is, as its name suggests, standard error output. this
it is useful when, for example, you redirect the output of your program to a
archive. If in that case an error occurs in the execution of the
program and you have your output stderr, the error will come out in the
terminal instead of in the file.
Here is a documentation in Spanish
as an example:
#include <stdio.h>
#include <errno.h>
#include <string.h>
extern int errno ;
int main () {
FILE * pf;
int errnum;
pf = fopen ("archivo_no_existente.txt", "rb");
if (pf == NULL) { //Archivo no existe!
errnum = errno;
//Imprime salida formateada del error.
fprintf(stderr, "Error al tratar de abrir el archivo es : %s\n", strerror( errnum ));
}
else {
fclose (pf);
}
return 0;
}
The output is: