예제 #1
0
static void deinit(void) {
    // others...
    sb_deinit();
    ti_deinit();
    ts_deinit();
    tl_deinit();
    comm_deinit();
    options_deinit();
}
예제 #2
0
int main(void) {
	if(tl_init()) {
		write(2, ERROR_MESSAGE, sizeof(ERROR_MESSAGE) - 1);
		return 1;
	}
	
#ifdef ON
	tl_on();
#elif defined OFF
	tl_off();
#elif defined TOGGLE
	tl_toggle();
#endif
	
	tl_deinit();
	return 0;
}