Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

gdp / test / t_ep_uuid.c @ master

History | View | Annotate | Download (590 Bytes)

1
#include <ep/ep.h>
2
#include <ep/ep_uuid.h>
3
#include "t_common_support.h"
4

    
5
int
6
main(int argc, char **argv)
7
{
8
        EP_UUID uuid;
9
        EP_UUID_STR uustr;
10
        EP_STAT estat;
11

    
12
        estat = ep_uuid_generate(&uuid);
13
        test_message(estat, "ep_uuid_create");
14

    
15
        estat = ep_uuid_tostr(&uuid, uustr);
16
        test_message(estat, "ep_uuid_tostr");
17
        printf("New: %s\n", uustr);
18
        printf("Null?: %d\n", ep_uuid_is_null(&uuid));
19

    
20
        estat = ep_uuid_clear(&uuid);
21
        test_message(estat, "ep_uuid_clear");
22
        estat = ep_uuid_tostr(&uuid, uustr);
23
        printf("Clear: %s\n", uustr);
24
        printf("Null?: %d\n", ep_uuid_is_null(&uuid));
25

    
26
        exit(0);
27
}