The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
Google UNIX.COM


High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
exiting from script arghya_owen Shell Programming and Scripting 1 06-02-2008 03:36 AM
Else Loop Exiting Early GregWold Shell Programming and Scripting 8 03-20-2008 11:29 AM
SFTP not exiting when run from cron msabhilash SUN Solaris 2 12-02-2007 04:48 PM
Script Not Exiting??? lesstjm Shell Programming and Scripting 1 07-11-2007 08:58 AM
*Out of memory, exiting big123456 Shell Programming and Scripting 1 08-22-2005 02:26 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 04-17-2002
Registered User
 

Join Date: Jan 2002
Location: uk
Posts: 23
exiting in c

how can i exit in a c program i have tried
system ("exit");

but this doesnt seem to work
just wondered if you could help.
Reply With Quote
Forum Sponsor
  #2  
Old 04-17-2002
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,658
exit(0);
Reply With Quote
  #3  
Old 04-17-2002
Registered User
 

Join Date: Jan 2002
Location: uk
Posts: 23
thanks

thanks alot
Reply With Quote
  #4  
Old 04-27-2002
Registered User
 

Join Date: Apr 2002
Posts: 13
return; may also suffice; (if its main(), then you needn't give 0 after return)
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 12:31 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0