C Tutorial/string.h/strerror

Материал из C\C++ эксперт
Перейти к: навигация, поиск

strerror

Item Value Header file string.h Declaration char *strerror(int errnum); Return returns error message associated with the errnum.

Print an implementation-defined error message on the screen:


<source lang="cpp">#include<string.h>

  1. include<stdio.h>

int main(void){

 printf(strerror(10));

}</source>