Avoiding the main (entry point) in a C program
If you’re using gcc, I found a thread that said you can use the -e command-line parameter to specify a different entry point; so you could use func as your entry point, which would leave main unused. Note that this doesn’t actually let you call another routine instead of main. Instead, it lets you call … Read more