Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Rookie Question

Status
Not open for further replies.

logic4fun1

Programmer
Jun 29, 2006
6
US
I am programming in C for last 2 years but all i learned is at work and not at a school. I am trying to go through some source code and all i see in them is a bunch of C files and a make file.

eg : main.c system.c admin.c

and in main.c i wont see a function call like

main(int argc, char **argv) {

/* Do a bunch of Stuff */

}

How to interpret that and how will the code work. I mean How can i understand the flow of the Program without main call.

Thanks
 
Do you see any export statements? It probably builds a library or DLL file.
 
I dont see any export statements. but i do see that there is one function which is like

processData(int argc, char *argv[])

Is this an alternative to main(int argc, char *argv[]) ?

I am just used to calling main as just main..so is the cause of confusion.

thanks for your help
 
You can specify a different start function other than main(), although I have no idea why anyone would want to?
In Visual Studio you use the /ENTRY link option. I forget the gcc option, but it's in the help somewhere.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top