comparison libcommon/chkblank.c @ 5:ce189c97b7b1

check_simresp_all_blank() factored out into libcommon
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 11 Feb 2021 23:31:51 +0000
parents
children
comparison
equal deleted inserted replaced
4:744fabd6bd3f 5:ce189c97b7b1
1 #include <sys/types.h>
2 #include "simresp.h"
3
4 check_simresp_all_blank()
5 {
6 u_char *dp, *endp;
7
8 dp = sim_resp_data;
9 endp = sim_resp_data + sim_resp_data_len;
10 while (dp < endp)
11 if (*dp++ != 0xFF)
12 return(0);
13 return(1);
14 }