EasyManuals Logo

Keysight Technologies N5166B CXG Programming Guide

Keysight Technologies N5166B CXG
398 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #148 background imageLoading...
Page #148 background image
148 Keysight CXG, EXG, and MXG X-Series Signal Generators Programming Guide
Programming Examples
LAN Programming Interface Examples
getopt(3C)
getopt(3C)
PROGRAM FILE NAME: getopt.c
getopt - get option letter from argument vector
SYNOPSIS
int getopt(int argc, char * const argv[], const char
*optstring);
extern char *optarg;
extern int optind, opterr, optopt;
PRORGAM DESCRIPTION:
getopt returns the next option letter in argv (starting from
argv[1])
that matches a letter in optstring. optstring is a string of
recognized option letters; if a letter is followed by a colon,
the
option is expected to have an argument that may or may not be
separated from it by white space. optarg is set to point to
the start
of the option argument on return from getopt.
getopt places in optind the argv index of the next argument to
be
processed. The external variable optind is initialized to 1
before
the first call to the function getopt.
When all options have been processed (i.e., up to the first
non-option
argument), getopt returns EOF. The special option -- can be
used to
delimit the end of the options; EOF is returned, and -- is
skipped.

Table of Contents

Other manuals for Keysight Technologies N5166B CXG

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Keysight Technologies N5166B CXG and is the answer not in the manual?

Keysight Technologies N5166B CXG Specifications

General IconGeneral
BrandKeysight Technologies
ModelN5166B CXG
CategoryPortable Generator
LanguageEnglish

Related product manuals