How can i use printf in a function with checking a variable?

后端 未结 0 1147
孤城傲影
孤城傲影 2021-01-05 05:10

I want to print output if OUT is 1. So i think that code.

#define OUT 1

void d_printf(char *text){
  if(OUT)
    printf("%s", text);
}

int main(vo         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题