lineCode / uuid4

A tiny C library for generating uuid4 strings

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

uuid4

A tiny C library for generating uuid4 strings.

Usage

uuid4.c and uuid4.h should be dropped into an existing project. The library contains one function to generate a uuid4 string and store it in a buffer of at least UUID4_LEN in size.

char buf[UUID4_LEN];
uuid4_generate(buf);
printf("%s\n", buf);

uuid4_generate() is not thread-safe.

License

This library is free software; you can redistribute it and/or modify it under the terms of the MIT license. See LICENSE for details.

About

A tiny C library for generating uuid4 strings

License:MIT License


Languages

Language:C 97.3%Language:Shell 2.7%