C/stdio.h/perror

Материал из C\C++ эксперт
Версия от 10:23, 25 мая 2010; Admin (обсуждение | вклад) (1 версия: Импорт контента...)
(разн.) ← Предыдущая | Текущая версия (разн.) | Следующая → (разн.)
Перейти к: навигация, поиск

perror: maps error message to the global variable errno and outputs that string to stderr

    
//Header file:     #include <stdio.h>  
//Declaration:     void perror(const char *str); 
  
  #include <stdio.h>
  #include <stdlib.h>
  int main(void)
  {
    perror("File error ");
  }
         
/*
File error : No Error
*/