Distributed Multihead X  1.16.4
dmxarg.c File Reference
#include "dmx.h"
#include "dmxarg.h"
#include <stdio.h>
#include <string.h>

Data Structures

struct  _dmxArg
 

Macros

#define DMX_ARG_TEST   0
 

Functions

dmxArg dmxArgCreate (void)
 
void dmxArgFree (dmxArg a)
 
void dmxArgAdd (dmxArg a, const char *string)
 
const char * dmxArgV (dmxArg a, int item)
 
int dmxArgC (dmxArg a)
 
dmxArg dmxArgParse (const char *string)
 

Detailed Description

Generic comma-delimited argument processing.

Macro Definition Documentation

#define DMX_ARG_TEST   0

Function Documentation

void dmxArgAdd ( dmxArg  a,
const char *  string 
)

Add the string as the next argument in the dmxArg object.

References _dmxArg::argc, _dmxArg::argm, and _dmxArg::argv.

Referenced by dmxArgParse().

int dmxArgC ( dmxArg  a)

Return the number of arguments in the dmxArg object.

References _dmxArg::argc.

Referenced by dmxInputInit(), and dmxPopulateLocal().

dmxArg dmxArgCreate ( void  )

Create an (externally opaque) dmxArg object.

References _dmxArg::argc, _dmxArg::argm, and _dmxArg::argv.

Referenced by dmxArgParse().

void dmxArgFree ( dmxArg  a)

Free the specified dmxArg object.

References _dmxArg::argc, and _dmxArg::argv.

Referenced by dmxInputInit().

dmxArg dmxArgParse ( const char *  string)

Parse a string into arguments delimited by commas. Return a new dmxArg object containing the arguments.

References dmxArgAdd(), and dmxArgCreate().

Referenced by dmxInputInit().

const char* dmxArgV ( dmxArg  a,
int  item 
)

Return the argument number item in the dmxArg object. Arguments are 0 based. NULL will be returned for values less than 0 or equal to or greater than the number of arguments in the object.

References _dmxArg::argc, and _dmxArg::argv.

Referenced by dmxInputInit(), and dmxPopulateLocal().


Generated on Tue Aug 18 2015 01:27:31 for Distributed Multihead X by doxygen 1.8.8