strerror Function

  • It returns error message associated with the errnum .


  • Syntax:

      char *strerror(int errnum);

    Example:

    #include <string.h>
    
    #include <stdio.h>
    
    int main()
    
    {
    
      printf(strerror(10));
    
      return 0;
    
    }
    Back