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

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

#include <getopt.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "internal.h"
#include <libmgec/mge-errno.h>
#include <swoc/cmdlineargs.h>
Include dependency graph for cmdlineargs.c:

Functions

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

Detailed Description

Command line argument processing for swocclient using getopt_long.

Author
Copyright (C) 2015-2022 Mark Grant

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

Version
v1.1.12 ==== 17/09/2022

Function Documentation

◆ cpyarg()

int cpyarg ( char *  flagarg,
char *  srcarg 
)

◆ process_cla()

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

Process command line arguments using getopt_long.

On error mge_errno will be set.

Parameters
argcThe standard CLA argc.
argvThe standard CLA argv.
...Variable number of flag structs.
Returns
0 on success, -mge_errno on failure.