Implement :
[Project_algorithmic_C.git] / lib / debug.c
1 /*
2 * =====================================================================================
3 *
4 * Filename: debug.c
5 *
6 * Description: Debugging functions
7 *
8 * Version: 1.0
9 * Created: 27/04/2017 12:58:37
10 * Revision: none
11 * Compiler: gcc
12 *
13 * Author: Jerome Benoit (fraggle), jerome.benoit@piment-noir.org
14 * Organization: Piment Noir
15 *
16 * =====================================================================================
17 */
18
19 #include <string.h>
20
21 #include "debug.h"
22
23 void dbg_mvprintw(int base_y, int base_x, const char* fmt, va_list varglist) {
24
25 mvprintw(base_y, base_x - snprintf(NULL, 0, fmt, varglist)/2, fmt, varglist);
26 }