Server Wait On Clients System - API Documentation  v1.4.2
Server Wait On Clients System.
cmdlineargs.c File Reference

Command line argument processing for swocserverd using getopt_long. More...

#include <getopt.h>
#include <stdio.h>
#include <stdlib.h>
#include <sysexits.h>
#include "internal.h"
#include <cmdlineargs.h>
Include dependency graph for cmdlineargs.c:

Functions

int process_cla (int argc, char **argv,...)
 Process command line arguments using getopt_long. More...
 

Detailed Description

Command line argument processing for swocserverd using getopt_long.

Author
Copyright (C) 2016-2019 Mark Grant

Released under the GPLv3 only.
SPDX-License-Identifier: GPL-3.0

Version
v1.0.6 ==== 18/05/2019

Function Documentation

◆ process_cla()

int process_cla ( int  argc,
char **  argv,
  ... 
)

Process command line arguments using getopt_long.

Parameters
argcThe standard CLA argc.
argvThe standard CLA argv.
...No further args. Here due to shared prototype.
Returns
0 on success, on failure standard EX_USAGE (64) command line usage error.