Click to See Complete Forum and Search --> : Exit
Help
Feb 16th, 2001, 01:34 PM
Hello.
Is there a function that allows me to kill my program thats running.
For example if I put a certain code in the module it will kill the program.
Vb has unload me.
Im look for that type of function in C.
Thanks
Vlatko
Feb 16th, 2001, 02:22 PM
Console apps wil terminate if you return 0 in the main() function.
int main()
{
//code
return 0; //exit
}
In Windows apps, use the PostQuitMessage() function.
PostQuitMessage(0);
Help
Feb 16th, 2001, 03:22 PM
Thanks alot Megatron & Vlatko.
Exactly what I needed to know :)
Another thing.
I know C all the way up to pointer , arrays, structs, enums, and etc.
But Istill do not know what to use it for.
How do I get about making say linux apps or coding for some open source applications.
Or even if I want to write my own drivers or check system stats ?
How do I go about doing this or learning this.?
I feel like all this C is really useless right now. :(
Any thoughts would help ;
Thanks
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.