I have a C source file with some functions in it. I want to call some particular function from a shell script.
I have a sample.c file with the below content. I want to call funcA here from a shell script. How can I do that?
#include <stdio.h>
void funcA(void){
printf("Congrats..!! This is function A...!!\n");
}
int main(void){
printf("Better luck next time..!!\n");
return 0;
}