468,503 Members | 2,174 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,503 developers. It's quick & easy.

exit from command line argument

25
i tried to develop a program to include command line argument. if there is nothing than a.out (i use cc compiler), i want to finish the program. but i can't exit from the program. someone help me please, and please give me the code to finish the program without doing nothing except a.out at the command line argument
Sep 7 '06 #1
1 5906
Banfa
9,055 Expert Mod 8TB
You're not really making sense.

However to exit a program you have 2 choices

1. Return from the main function

2. Call the exit() function
Sep 7 '06 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

12 posts views Thread by Ivan Voras | last post: by
7 posts views Thread by Bernd Danberg | last post: by
19 posts views Thread by ern | last post: by
6 posts views Thread by =?Utf-8?B?Rm9ycmVzdCBIZWxsZXI=?= | last post: by
2 posts views Thread by =?Utf-8?B?UmFtb24gR2VuZQ==?= | last post: by
5 posts views Thread by junw2000 | last post: by
11 posts views Thread by Rahul | last post: by
reply views Thread by NPC403 | last post: by
3 posts views Thread by gieforce | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.