[SDL] is SDL supposed to be using WinMain?

Paul Duffy odubtaig at yahoo.co.uk
Fri Sep 7 15:51:12 PDT 2007


--- malik martin <laserbeak43 at gmail.com> wrote:

> i see. I still haven't really learned much at all about the arguments
> in main( int argc, char argv[]) most of my programming books don't
> speak of it. i saw one online that did but i can't remember the name.
> looks like i'll be needing to read up on that pretty soon though :)

Command line arguments.

argc is the count for the number of arguments
*argv[] (or **argv) is an array of character arrays containing those
arguments
arg 0 is always the first thing on the command line which is usually
the command itself.

In any good practice main should always return an int, but the
arguments are optional so int main(void) is still valid.


       
____________________________________________________________________________________
Pinpoint customers who are looking for what you sell. 
http://searchmarketing.yahoo.com/



More information about the SDL mailing list