I'm familiar with C, but haven't written any medium or large application in it. I have a requirement to built an application that can be run as a standalone console application as well as Fast-CGI and Apache module.
I'm thinking of implementing the core functionality as a Static Library and then write a wrapper for console, Fast-CGI and Apache module.
As I'm not a C expert, I was wondering what are my other options. Having the core functionality in a standalone binary and calling it using system calls from the wrappers would work also, however I can't fully write down the pros and cons of each.
Also the software is supposed to run on GNU/Linux machines, so I'm very open to follow the community conventions.