mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-09-13 06:23:45 -04:00
24 lines
396 B
C
24 lines
396 B
C
#include "gslglib.h"
|
|
|
|
#include <stdio.h>
|
|
|
|
void
|
|
gsl_g_log (const gchar*msg,const char *format, va_list ap)
|
|
{
|
|
if (msg) printf ("\n%s",msg);
|
|
vprintf(format, ap);
|
|
if (msg) printf ("\n");
|
|
}
|
|
|
|
void
|
|
gsl_g_print_fd (int fd, const char *format, va_list ap)
|
|
{
|
|
g_return_if_fail (fd == 1 || fd == 2);
|
|
if (fd == 1)
|
|
vprintf (format, ap);
|
|
else
|
|
vfprintf (stderr, format, ap);
|
|
}
|
|
|
|
|