[2ff69e]: examples / message_buffer.h  Maximize  Restore  History

Download this file

21 lines (13 with data), 291 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
/* message_buffer.h
This file is in the public domain.
*/
#ifndef MESSAGE_BUFFER_H
#define MESSAGE_BUFFER_H
#define MB_MESSAGE(fmt...) { \
char _m[256]; \
snprintf(_m, 255, fmt); \
add_message(_m); \
}
void mb_init(const char *prefix);
void add_message(const char *msg);
#endif

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks