librfn
An ad-hoc utility library
mlog.h
Go to the documentation of this file.
1 /*
2  * mlog.h
3  *
4  * Part of librfn (a general utility library from redfelineninja.org.uk)
5  *
6  * Copyright (C) 2015 Daniel Thompson <daniel@redfelineninja.org.uk>
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU Lesser General Public License as published
10  * by the Free Software Foundation; either version 3 of the License, or
11  * (at your option) any later version.
12  */
13 
14 #ifndef RF_MLOG_H_
15 #define RF_MLOG_H_
16 
17 #include <stdio.h>
18 #include <stdarg.h>
19 
41 void vmlog(const char *fmt, va_list ap);
42 
67 void mlog(const char *fmt, ...);
68 
75 void vmlog_nice(const char *fmt, va_list ap);
76 
82 void mlog_nice(const char *fmt, ...);
83 
87 void mlog_clear(void);
88 
92 void mlog_dump(FILE *f);
93 
99 char *mlog_get_line(int n);
100 
101 
103 #endif // RF_MLOG_H_
void mlog_nice(const char *fmt,...)
Log a message, if there is space to do so.
Definition: mlog.c:62
void mlog_dump(FILE *f)
Format the log and write it to the supplied file pointer.
Definition: mlog.c:88
void vmlog(const char *fmt, va_list ap)
Log a message using a variable argument list.
Definition: mlog.c:33
char * mlog_get_line(int n)
Format the Nth line of the log.
Definition: mlog.c:96
void mlog_clear(void)
Clear all data from the log.
Definition: mlog.c:71
void mlog(const char *fmt,...)
Log a message.
Definition: mlog.c:47
void vmlog_nice(const char *fmt, va_list ap)
Log a message using a variable argument list, if there is space to do so.
Definition: mlog.c:56
const uint8_t fmt[]
Definition: wavheader.c:24