File: clear.c

package info (click to toggle)
libuuid-perl 0.37-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,092 kB
  • sloc: ansic: 2,374; perl: 580; makefile: 5
file content (24 lines) | stat: -rw-r--r-- 526 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifdef __cplusplus
extern "C" {
#endif

#include "ulib/clear.h"

#ifdef __cplusplus
}
#endif

void uu_clear(struct_uu_t *io) {
  io->v1.time_low              = 0;
  io->v1.time_mid              = 0;
  io->v1.time_high_and_version = 0;
  io->v1.clock_seq_and_variant = 0;
  io->v1.node[0]               = 0;
  io->v1.node[1]               = 0;
  io->v1.node[2]               = 0;
  io->v1.node[3]               = 0;
  io->v1.node[4]               = 0;
  io->v1.node[5]               = 0;
}

/* ex:set ts=2 sw=2 itab=spaces: */