tlibc/README.md
2025-11-27 01:38:50 +05:00

35 lines
663 B
Markdown

# tlibc
C library with collections, strings, exceptions, io...
## Build
1. Clone this repository.
```
git clone https://timerix.ddns.net/git/Timerix/tlibc.git
```
2. Install [cbuild](https://timerix.ddns.net/git/Timerix/cbuild/releases).
Select latest version compatible with the one in `project.config`.
Example: For `2.3.0` download latest `2.3.x`.
3. Build static library
```
cd tlibc
cbuild build_static_lib_dbg
```
## Usage
```c
#include "tlibc/tlibc.h"
int main(){
Deferral(32); // reserve memory for 32 defers
try_fatal_void(tlibc_init());
Defer(tlibc_deinit());
Return 0; // call defers
}
```