https://github.com/3dgoose/librem
Collection of single-file C libraries with Lua API.
https://github.com/3dgoose/librem
array cli lua math
Last synced: 12 months ago
JSON representation
Collection of single-file C libraries with Lua API.
- Host: GitHub
- URL: https://github.com/3dgoose/librem
- Owner: 3dgoose
- License: zlib
- Created: 2025-04-09T11:04:31.000Z (about 1 year ago)
- Default Branch: trunk
- Last Pushed: 2025-04-11T22:54:23.000Z (12 months ago)
- Last Synced: 2025-04-11T23:22:02.929Z (12 months ago)
- Topics: array, cli, lua, math
- Language: C
- Homepage:
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# libremachines
`libremachines` is a collection of single-file libraries with written in C with an exposed Lua API.
## Mentions
* Written in C99
* Use freely under Zlib license.
* Lua and C API
## Libraries
* Netework boradcast
* Array programming
* Terminal utilities (`airlib.c`)
## Usage
Both Lua and C can be used.
### Lua
1. Place the desired library's .so in your folder
2. Use the `require(libname)` function
Example :
```lua
local airlib = require("airlib")
-- Usage
airlib.clrscr()
airlib.richText("Hello from Lua!", "KGRN", 1, 0, 1)
```
### C
1. Place the desired library file (.c/.h) in your folder
2. Use the `#include "libname.h"`