#ifdef DEBUG_PROCESS /* Debugging process code is difficult; where to write debug output? */ static void debugPrint(char *format, ...) { FILE *tty = fopen("/dev/tty", "w"); va_list ap; va_start(ap, format); vfprintf(tty, format, ap); va_end(ap); fclose(tty); } #endif /* DEBUG_PROCESS */
2018年10月2日 星期二
不定參數印 log
From the UNIXProcess_md.c
訂閱:
張貼留言 (Atom)
不定參數印 log
From the UNIXProcess_md.c #ifdef DEBUG_PROCESS /* Debugging process code is difficult; where to write debug output? */ static void deb...
-
1. SikuliX 本體下載 首先你必須要下載SikuliX (廢話) (撰寫本文時, SikuliX版本為 sikulixsetup-1.1.2.jar) http://sikulix.com/quickstart/ 由於SikuliX IDE是運行在Ja...
-
前情提要 勇者喵不小心落入了異世界, 身無分文的牠只好開始打工還債... 我們上回說到的 Producer 跟 Consumer 是一個很重要的結構, 這裡的 Producer 跟 Consumer 有時候不一定是單純扮演生產者的角色. 為什麼這麼說呢? 晚點你就...
沒有留言:
張貼留言