GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
AG_GETOPT(3) FreeBSD Library Functions Manual AG_GETOPT(3)

AG_Getopt
agar getopt() implementation

#include <agar/core.h>

The AG_Getopt interface parses command-line arguments.

int
AG_Getopt(int argc, char * const argv[], const char *optstring, char **optarg_out, int *optind_out);

The AG_Getopt() function is a wrapper to getopt(3), on platforms where it is supported. The optarg value is returned into optarg_out, and optind is returned into optind_out.

If successful, AG_Getopt() returns the next option character. On platforms where command-line arguments are not supported, AG_Getopt() always returns -1.

AG_Intro(3)

The AG_Getopt interface first appeared in Agar 1.4
March 31, 2010 FreeBSD 13.1-RELEASE

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.