Closed Smilex closed 7 years ago
Hi,
it would be better to add two functions to the api instead of modifying ctoy_begin. I can't include that because it would break previous code, from people already using CToy, from older projects etc.
Ex of a better way, in ctoy.h : int ctoy_argc(void); // return arvc char **ctoy_argv(void); // return argv
In the project I'm working on I need to work with arguments passed to CToy. This makes it so that ctoy_begin now has two parameters, int argc and char **argv