471,873 Members | 1,634 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,873 software developers and data experts.

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 6072
Banfa
9,065 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 YellowAndGreen | last post: by
reply views Thread by zermasroor | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.