summaryrefslogtreecommitdiffstats
path: root/include/print.h
blob: f4c942c34ee809317ec45cdfd111f4cfdb3a8651 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#ifndef _JOVE_LIB_PRINT_H
#define _JOVE_LIB_PRINT_H 1

#include <stdarg.h>

void _klogf(const char *file, const char *func, int line, const char *fmt, ...);
#define klogf(...) _klogf(__FILE__, __FUNCTION__, __LINE__, __VA_ARGS__)

int kprintf(const char *fmt, ...);
int ksprintf(char *s, const char *fmt, ...);
int ksnprintf(char *s, int size, const char *fmt, ...);

int kvprintf(const char *fmt, va_list ap);
int kvsprintf(char *s, const char *fmt, va_list ap);
int kvsnprintf(char *s, int size, const char *fmt, va_list ap);

#endif