Re: int question
Re: int question
- Subject: Re: int question
- From: Enrique Zamudio <email@hidden>
- Date: Tue, 05 Jun 2001 14:02:46 -0500
- Organization: Nasoft
Would someone be kind enough to explain what this line of code does:
int main (int argc, const char * argv[])
That's just plain old C. A Cocoa application, deep deep down inside, is
a C program.
Any C program needs a main function, which is the one that gets called
when you run your program. Command-line parameters get passed to your
program on argv, and argc indicates how many parameters argv contains.
The main function usually returns 0 if everything's ok.
eZL