/* Prints out the matchinfo. */ static void print(const struct ipt_ip *ip, const struct ipt_entry_match *match, int numeric) { printf("length "); print_length((struct ipt_length_info *)match->data); }
int main( ) { int my_int_array[] = {1, 2, 3, 4, 5, 6, 7, 8}; print_length(my_int_array); return 0; }
void deplace_term(int sigwinch) { if (ig_good_size(get_size_x(), get_size_y(), get_long_work(CS), CS->size)) { tputs(tgoto(tgetstr("cm", NULL), 0, 0), FD, tputs_putchar); tputs(tgetstr("cd", NULL), FD, tputs_putchar); print_length(CS, get_size_y()); print_cursor(KEYUP); print_cursor(KEYDOWN); } else small_size(); (void)sigwinch; }
/* Saves the union ipt_matchinfo in parsable form to stdout. */ static void length_save(const void *ip, const struct xt_entry_match *match) { printf("--length "); print_length((struct xt_length_info *)match->data); }