User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the C section within the Software Development category of DaniWeb, a massive community of 397,983 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,747 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our C advertiser:
Views: 332 | Replies: 1
Reply
Join Date: Oct 2007
Posts: 1
Reputation: aldebaran31 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
aldebaran31 aldebaran31 is offline Offline
Newbie Poster

Question Creating a help menu to accompany a program

  #1  
Oct 3rd, 2007
I have written a program in c. It's relatively simple,
but I need to learn how to write a help file that can
access the documentation within the program and
output it, for example, I would like it that if the
user were to type
help input at the command prompt,
information on the input file specifications will be given.
Any suggestions on where to look to learn how to
do something like this?

Thanks!
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Dec 2005
Posts: 3,346
Reputation: Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of 
Rep Power: 20
Solved Threads: 379
Colleague
Salem's Avatar
Salem Salem is offline Offline
void main'ers are DOOMed

Re: Creating a help menu to accompany a program

  #2  
Oct 4th, 2007
Something like this?
if ( strcmp( argv[1], "--help" ) == 0 ) {
  showHelp();
}
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
Do not PM me for help; You'll be ignored, or told to learn to read.
Do not ask me if I'm muslim - I'm not. Nor do I care about yours or anyone else's mysticism. Religion is a matrix, take the RED PILL.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb C Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the C Forum

All times are GMT -4. The time now is 1:08 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC