Simple C utilities, single-header library
| crun | init | |
| README.md | renamed sc.h to sia | |
| sia.h | renamed sc.h to sia | |
Sia - Simple C utilities
This library is primarily indended to be used with C23, use it for the best experience.
Usage
#include <stdio.h>#define SIA_IMPLEMENTATION
#include "sia.h"
int main(int argc, char **argv)
{
unused(argc), unused(argv);
Cmd cmd = {0};
cmd_append(&cmd, "echo", "Hello, World!");
cmd_run(&cmd);
return 0;
}
Crun
A script that allows runnig c programs as scripts, with gcc and clang.
Install crun into your PATH, put this shebang at the top of a c file and give
it executable permisions.
#/usr/bin/env crun