How create shell commands from C functions
Wondering how to take a set of C functions and turn them into shell/bash commands. So say I have a simple set of C functions int fn1() { // some C code for function 1. } int fn2() { // some C code for function 2. } int fn3() { // some C code for function 3. } I would like to then somehow create CLI commands so I can use them from the terminal. $ fn1 <param> <param> ... $ fn2 ... $ fn3 ... Not sure what the process is of doing this. If I need to somehow rewrite all the function interfaces in shell script, and then call of to a C function in some way, sort of like this (bash script): fn1() {