Logo Search packages:      
Sourcecode: libnl version File versions  Download package

void nl_perror ( const char *  s  ) 

Print a libnl error message

  • s error message prefix
Prints the error message of the call that failed last.

If s is not NULL and *s is not a null byte the argument string is printed, followed by a colon and a blank. Then the error message and a new-line.

Definition at line 163 of file utils.c.

References nl_geterror().

{
      if (s && *s)
            fprintf(stderr, "%s: %s\n", s, nl_geterror());
      else
            fprintf(stderr, "%s\n", nl_geterror());
}


Generated by  Doxygen 1.6.0   Back to index