mrfioc2
2.3.0
|
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <string.h>
#include <limits.h>
#include <math.h>
#include <dbDefs.h>
#include <epicsTypes.h>
#include <epicsString.h>
#include <macLib.h>
#include "linkoptions.h"
Go to the source code of this file.
Macros | |
#define | epicsExportSharedSymbols |
#define | HUGE_VALF HUGE_VAL |
#define | HUGE_VALL (-(HUGE_VAL)) |
Functions | |
int epicsShareAPI | linkOptionsStore (const linkOptionDef *opts, void *user, const char *str, int options) |
Parse a string a store the result. More... | |
epicsShareFunc const char *epicsShareAPI | linkOptionsEnumString (const linkOptionEnumType *emap, int i, const char *def) |
Return the string associated with Enum 'i'. More... | |
#define epicsExportSharedSymbols |
Definition at line 23 of file linkoptions.c.
#define HUGE_VALF HUGE_VAL |
Definition at line 27 of file linkoptions.c.
#define HUGE_VALL (-(HUGE_VAL)) |
Definition at line 30 of file linkoptions.c.
epicsShareFunc const char* epicsShareAPI linkOptionsEnumString | ( | const linkOptionEnumType * | Enums, |
int | i, | ||
const char * | def | ||
) |
Return the string associated with Enum 'i'.
Enums | A null-terminated array of string/integer pairs |
i | An Enum index |
def | String to be returned in 'i' isn't a valid Enum index. |
Definition at line 226 of file linkoptions.c.
int epicsShareAPI linkOptionsStore | ( | const linkOptionDef * | opts, |
void * | user, | ||
const char * | str, | ||
int | options | ||
) |
Parse a string a store the result.
Takes the string 'str', parses it according to 'opts', then sorts the result in 'user'.
opts | A null-terminated array of options. |
user | Pointer to a structure whos member offsets are given in 'opts' |
str | The string to parse |
options | Some modifiers for the parsing process or 0. The only option is LINKOPTIONDEBUG. |
Definition at line 135 of file linkoptions.c.