File Coverage

ulib/copy.c
Criterion Covered Total %
statement 0 18 0.0
branch 0 2 0.0
condition n/a
subroutine n/a
pod n/a
total 0 20 0.0


line stmt bran cond sub pod time code
1             #ifdef __cplusplus
2             extern "C" {
3             #endif
4              
5             #include "ulib/copy.h"
6              
7             #ifdef __cplusplus
8             }
9             #endif
10              
11 0           void uu_copy_binary(pUCXT, const uu_t in, uu_t out) {
12             /* XXX use Copy */
13 0           U8 *cp1 = (U8*)∈
14 0           U8 *cp2 = out;
15             UV i;
16              
17 0 0         for (i=0; i < 16; i++)
18 0           *cp1++ = *cp2++;
19 0           }
20              
21 0           void uu_copy_struct(pUCXT, const struct_uu_t *in, struct_uu_t *out) {
22             /* XXX use Copy */
23 0           out->v1.time_low = in->v1.time_low;
24 0           out->v1.time_mid = in->v1.time_mid;
25 0           out->v1.time_high_and_version = in->v1.time_high_and_version;
26 0           out->v1.clock_seq_and_variant = in->v1.clock_seq_and_variant;
27 0           out->v1.node[0] = in->v1.node[0];
28 0           out->v1.node[1] = in->v1.node[1];
29 0           out->v1.node[2] = in->v1.node[2];
30 0           out->v1.node[3] = in->v1.node[3];
31 0           out->v1.node[4] = in->v1.node[4];
32 0           out->v1.node[5] = in->v1.node[5];
33 0           }
34              
35             /* ex:set ts=2 sw=2 itab=spaces: */