create debug_msg()

This commit is contained in:
kevinnls committed 2021-09-20 16:18:45 +05:30
1 parent 0ff2d37606
commit 038f493d19
2 files changed
+12

No files matched your search

+1
View File
@@ -0,0 +1 @@
main.c
+11
View File
@@ -0,0 +1,11 @@
#include<stdio.h>
#include<stdlib.h>
#include<stdarg.h>
void debug_msg(char* message, ... ){
va_list args;
va_start(args, message);
fprintf(stderr, "DEBUG: ");
vfprintf(stderr, message, args);
va_end(args);
}