https://github.com/dreampast/libul
Some header-only utility files
https://github.com/dreampast/libul
c cpp cross-compiler cross-plattform native utiltity
Last synced: about 2 months ago
JSON representation
Some header-only utility files
- Host: GitHub
- URL: https://github.com/dreampast/libul
- Owner: DreamPast
- License: mit
- Created: 2024-04-12T10:25:00.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-23T15:15:29.000Z (2 months ago)
- Last Synced: 2025-04-16T02:09:14.862Z (about 2 months ago)
- Topics: c, cpp, cross-compiler, cross-plattform, native, utiltity
- Language: C
- Homepage:
- Size: 1.09 MB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# libul
[English](README.md) [简体中文](README_zh_CN.md)
Some header-only utility files, no configuration required, ready to use.
Every folders may include following files:
| File type | Introduction |
| --------- | ------------------------------------------------------------ |
| *.h | C header files. Most of which can be used under C89/C++98, some components depend on platform support (automatically determined by macros). |
| *.hpp | C++ header files. These provide simple wrappers for C header file, most require C++11 or higher. |
| *.c | Example in C. |
| *.cpp | Example in C++. |## Overview
| Folder | Introduction |
| -------- | ------------------------------------------------------------ |
| ulatomic | Atomic operations |
| uldate | Date and time (like `Date` in Javascript) |
| uldbuf | Dynamic buffer |
| uldecode | Text encoding |
| uldl | Dynamic shared library |
| ulendian | Endianness |
| ulfd | File descriptor |
| ullist | Double linked list |
| ulmtx | Mutex |
| ulrand | Random number generator (uses [PCG Random Number Generators](https://www.pcg-random.org/)) |
| ulrb | Red-black tree (quick but restricted version) |
| ulsarr | Read-only shared array (speeding up slicing, concatenating, etc.) |
| ulstdint | Compatibility header file for (for some older compilers) |
| ulutf | UTF related operations |## License
> The MIT License (MIT)
>
> Copyright (C) 2023-2024 Jin Cai
>
> Permission is hereby granted, free of charge, to any person obtaining a copy
> of this software and associated documentation files (the "Software"), to deal
> in the Software without restriction, including without limitation the rights
> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
> copies of the Software, and to permit persons to whom the Software is
> furnished to do so, subject to the following conditions:
>
> The above copyright notice and this permission notice shall be included in all
> copies or substantial portions of the Software.
>
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
> SOFTWARE.