File Coverage

ulib/isnull.c
Criterion Covered Total %
statement 6 10 60.0
branch 4 8 50.0
condition n/a
subroutine n/a
pod n/a
total 10 18 55.5


line stmt bran cond sub pod time code
1             #ifdef __cplusplus
2             extern "C" {
3             #endif
4              
5             #include "ulib/isnull.h"
6              
7             #ifdef __cplusplus
8             }
9             #endif
10              
11 113           IV uu_isnull_binary(const uu_t in)
12             {
13 113           const U8 *cp = in;
14             IV i;
15              
16 529 100         for (i=0; i<sizeof(uu_t); i++)
17 503 100         if (*cp++)
18 87           return 0;
19 26           return 1;
20             }
21              
22 0           IV uu_isnull_struct(const struct_uu_t *in) {
23 0 0         if (in->v0.low) return 0;
24 0 0         if (in->v0.high) return 0;
25 0           return 1;
26             }
27              
28             /* ex:set ts=2 sw=2 itab=spaces: */