星期六, 5月 12, 2007

Syslog

V1.0

copyright@2006

email: mesmerli@hotmail.com

syslog.c

#include <syslog.h>
#include <stdio.h>

int main()
{
FILE *f;

f = fopen("not_here","r");
if(!f)
syslog(LOG_ERR|LOG_USER,"oops - %mn");
exit(0);
}

0 意見: