X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=lib%2Fdebug.c;fp=lib%2Fdebug.c;h=e3229901502f1d0da3306b640faa1b57955ef5ef;hb=54f1c58cef6764fdd611eedc267e7491e777c09b;hp=0000000000000000000000000000000000000000;hpb=74e2b93b658575fa792ada51c3bf1cdc3cfde247;p=Project_algorithmic_C.git diff --git a/lib/debug.c b/lib/debug.c new file mode 100644 index 0000000..e322990 --- /dev/null +++ b/lib/debug.c @@ -0,0 +1,26 @@ +/* + * ===================================================================================== + * + * Filename: debug.c + * + * Description: Debugging functions + * + * Version: 1.0 + * Created: 27/04/2017 12:58:37 + * Revision: none + * Compiler: gcc + * + * Author: Jerome Benoit (fraggle), jerome.benoit@piment-noir.org + * Organization: Piment Noir + * + * ===================================================================================== + */ + +#include + +#include "debug.h" + +void dbg_mvprintw(int base_y, int base_x, const char* fmt, va_list varglist) { + + mvprintw(base_y, base_x - strlen(fmt)/2, fmt, varglist); +}