An open API service indexing awesome lists of open source software.

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.

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"`