9 main (int argc
, char **argv
)
16 h
= (unsigned char *) malloc (N
);
18 for (i
= 0; i
< N
; i
++)
23 d
= acc_copyin (h
, N
);
25 if (acc_is_present (h
, 1) != 1)
28 if (acc_is_present (h
+ N
- 1, 1) != 1)
31 if (acc_is_present (h
- 1, 1) != 0)
34 if (acc_is_present (h
+ N
, 1) != 0)
37 for (i
= 0; i
< N
; i
++)
39 if (acc_is_present (h
+ i
, 1) != 1)
43 for (i
= 0; i
< N
; i
++)
45 if (acc_is_present (h
+ i
, N
- i
) != 1)
51 for (i
= 0; i
< N
; i
++)
53 if (acc_is_present (h
+ i
, N
- i
) != 0)