File:  [DVB] / dietlibc / libcompat / warn.c
Revision 1.1: download - view: text, annotated - select for diffs
Fri Jun 13 18:41:41 2003 UTC (21 years ago) by leitner
Branches: MAIN
CVS tags: HEAD
add err, errx, verr, verrx, vwarn and warn

#define _GNU_SOURCE
#include <err.h>
#include <stdio.h>
#include <errno.h>
#include <string.h>

void warn(const char* f, ...) {
  va_list ap;
  va_start(ap,f);
  vfdprintf(2,f,ap);
  fdprintf(2,": %s\n",strerror(errno));
  va_end(ap);
}

LinuxTV legacy CVS <linuxtv.org/cvs>