Associated article: DScope: Snooping on the Comm Line
Published source code accompanying Al Stevens column in which he develops a data-scope program called "DScope." Al focuses on the Windows communications API. Also see CPROG397.ZIP.
_C Programming Column_ by Al Stevens Listing One // ------ serial.h #ifndef SERIAL_H #define SERIAL_H const int maxports = 2; // ------------ timer macros #define timed_out(timer) (timer==0) #define set_timer(timer, secs) timer=(secs)*182/10+1 #define disable_timer(timer) timer = ...