how to make a debug in c
#include <stdio.h>
#define DEBUG 1 // Set to 0 for no debug
#if DEBUG // check if debug is 1
#define LOG(X) printf(X) // define log as printf
#else // if debug not 1
#DEFINE LOG(X) // define log as nothing
#endif // end
void main(void) {
LOG("Hello, Debug!\n");
printf("Hello, World!\n");
getchar();
}
Also in C:
- fgets langage c
- strncpy c
- does strcat null terminate
- is it possible to access argv in function
- blockchain implementation
- mediawiki upload size
- Use of memory management unit
- int to double c
- cmd command with c
- division recursiva
- print variable c
- c concatenate and allocate string
- leer un archivo en c
- arduino define
- how to modulo decimal c
- potencia recursiva
- vs code turn off formatter
- switch c
- molotovn't ribbentropn't pact
- rakshabandhan 2020
- how to make a debug in c
- pointer arithmetic C
- arduino remove()
- select all file from date powershell