jeremytubongbanua/uuid4

1.0.3

uploaded 3 months ago
uuidv4 library

readme

# uuid4

A tiny C library for generating [uuid4](http://www.ietf.org/rfc/rfc4122.txt)
strings.

This repo has been forked from [rxi/uuid4](https://github.com/rxi/uuid4)
in order to:

* achieve greater compatability with the
[at_c SDK](https://github.com/atsign-foundation/at_c)
* provide compatability with ESP32

## Usage

[uuid4.c](src/uuid4.c?raw=1) and [uuid4.h](src/uuid4.h?raw=1) should be
dropped into an existing project. The library contains two functions:
one to initialize the library and one to generate a uuid4 string and
store it in a buffer of at least `UUID4_LEN` in size.

```c
char buf[UUID4_LEN];
uuid4_init();
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](LICENSE) for details.

Links

Supports all targets

License: BSD-3-Clause

To add this component to your project, run:

idf.py add-dependency "jeremytubongbanua/uuid4^1.0.3"

or download archive

Stats

  • Archive size
    Archive size ~ 2.65 MB
  • Downloaded in total
    Downloaded in total 11 times
  • Downloaded this version
    This version: 11 times

Badge

jeremytubongbanua/uuid4 version: 1.0.3
|