perror : perror « stdio.h « C Tutorial






ItemValue
Header filestdio.h
Declarationvoid perror(const char *str);
Functionmaps error message to the global variable errno and outputs that string to stderr.


#include <stdio.h>
  #include <stdlib.h>

  int main(void)
  {

    perror("File error ");
  }
File error : No Error








22.23.perror
22.23.1.perror