#define cprintf(fmt, args...) do { \
FILE *fp = fopen("/dev/console", "w"); \
if (fp) { \
fprintf(fp, fmt , ## args); \
fclose(fp); \
} \
} while (0)
cprintf
最新推荐文章于 2022-04-22 19:31:15 发布
#define cprintf(fmt, args...) do { \
FILE *fp = fopen("/dev/console", "w"); \
if (fp) { \
fprintf(fp, fmt , ## args); \
fclose(fp); \
} \
} while (0)