cecies
Functions
guid.h File Reference

Mh! The smell of fresh GUIDs.. More...

#include <stddef.h>
#include <stdint.h>
#include "types.h"
Include dependency graph for guid.h:

Go to the source code of this file.

Functions

CECIES_API cecies_guid cecies_empty_guid ()
 
CECIES_API cecies_guid cecies_new_guid (int lowercase, int hyphens)
 

Detailed Description

Mh! The smell of fresh GUIDs..

Author
Raphael Beck

Function Documentation

◆ cecies_empty_guid()

CECIES_API cecies_guid cecies_empty_guid ( )

Gets an empty GUID ("00000000-0000-0000-0000-000000000000").

Returns
"00000000-0000-0000-0000-000000000000"

◆ cecies_new_guid()

CECIES_API cecies_guid cecies_new_guid ( int  lowercase,
int  hyphens 
)

Generates a new GUID (a.k.a. UUID).

Parameters
lowercaseShould the GUID be lowercase or UPPERCASE only? Pass 0 for false, anything else for true.
hyphensShould the GUID contain hyphen separators? Pass 0 for false, anything else for true.
Returns
The cecies_guid