~ubuntu-branches/ubuntu/raring/ifile/raring

« back to all changes in this revision

Viewing changes to argp/argp-ex1.c

  • Committer: Bazaar Package Importer
  • Author(s): Jens Peter Secher
  • Date: 2004-11-19 23:30:24 UTC
  • Revision ID: james.westby@ubuntu.com-20041119233024-3s7sqpy963jx22eu
Tags: upstream-1.3.4
ImportĀ upstreamĀ versionĀ 1.3.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* Argp example #1 -- a minimal program using argp */
 
2
 
 
3
/* This is (probably) the smallest possible program that uses argp.
 
4
   It won't do much except give an error messages and exit when there are any
 
5
   arguments, and print a (rather pointless) messages for --help.  */
 
6
 
 
7
#include <argp.h>
 
8
 
 
9
int main (int argc, char **argv)
 
10
{
 
11
  argp_parse (0, argc, argv, 0, 0, 0);
 
12
  exit (0);
 
13
}