how to compile c file code example
Example 1: run a command in cmd with c
//C library statement
#include <stdlib.h>
//Driver program
int main(void)
{
//The C command to run a command in cmd
system("Your command here");
}
Example 2: how to compile c code to a .so
gcc -shared -o libhello.so -fPIC hello.c