/[osn-commons]/trunk/freehttpd/log.c
ViewVC logotype

Contents of /trunk/freehttpd/log.c

Parent Directory Parent Directory | Revision Log Revision Log


Revision 46 - (show annotations)
Mon Aug 12 16:55:32 2024 UTC (7 months, 2 weeks ago) by rakinar2
File MIME type: text/x-c
File size: 352 byte(s)
feat(freehttpd): better error handling
1 #include "log.h"
2
3 #include <stdarg.h>
4 #include <stdio.h>
5 #include <stdlib.h>
6
7 void
8 log_msg (const char *fmt, ...)
9 {
10 va_list args;
11 va_start (args, fmt);
12 vfprintf (stdout, fmt, args);
13 va_end (args);
14 }
15
16 void
17 log_err (const char *fmt, ...)
18 {
19 va_list args;
20 va_start (args, fmt);
21 vfprintf (stderr, fmt, args);
22 va_end (args);
23 }

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26