diff options
| author | Thomas Schmucker <ts@its1.de> | 2021-05-28 09:54:14 +0200 |
|---|---|---|
| committer | Thomas Schmucker <ts@its1.de> | 2021-05-28 09:54:14 +0200 |
| commit | d585045aaf6c3413b357922b92c947a07f99f30c (patch) | |
| tree | d42bff7fbed505f532f00b6dcac89bb80c20c6b9 /main.c | |
| download | use-libuuid-d585045aaf6c3413b357922b92c947a07f99f30c.tar.gz use-libuuid-d585045aaf6c3413b357922b92c947a07f99f30c.tar.bz2 use-libuuid-d585045aaf6c3413b357922b92c947a07f99f30c.zip | |
feat: Erster import
Diffstat (limited to 'main.c')
| -rw-r--r-- | main.c | 16 |
1 files changed, 16 insertions, 0 deletions
| @@ -0,0 +1,16 @@ | |||
| 1 | #include <stdio.h> | ||
| 2 | #include <stdlib.h> | ||
| 3 | #include <uuid/uuid.h> | ||
| 4 | |||
| 5 | int main(void) | ||
| 6 | { | ||
| 7 | uuid_t uuid; | ||
| 8 | uuid_generate(uuid); | ||
| 9 | |||
| 10 | char out[37]; | ||
| 11 | uuid_unparse(uuid, out); | ||
| 12 | |||
| 13 | printf("UUID: %s\n", out); | ||
| 14 | printf("sizeof(uuid) = %zu\n", sizeof uuid); | ||
| 15 | return 0; | ||
| 16 | } | ||
