20 #ifndef _STRINGINPUT_H
21 #define _STRINGINPUT_H
23 #include <lal/LALStdlib.h>
24 #include <lal/LALStdio.h>
26 #if defined(__cplusplus)
120 #define STRINGINPUTH_ENUL 1
121 #define STRINGINPUTH_EOUT 2
122 #define STRINGINPUTH_EMEM 3
125 #define STRINGINPUTH_MSGENUL "Unexpected null pointer in arguments"
126 #define STRINGINPUTH_MSGEOUT "Output handle points to a non-null pointer"
127 #define STRINGINPUTH_MSGEMEM "Memory allocation error"
135 typedef struct tagTokenList {
152 const CHAR *
string,
const CHAR * delimiters);
159 const CHAR *
string,
const CHAR * delimiters);
205 #elif defined(__cplusplus)
uint64_t UINT8
Eight-byte unsigned integer; on some platforms this is equivalent to unsigned long int instead.
double complex COMPLEX16
Double-precision floating-point complex number (16 bytes total)
double REAL8
Double precision real floating-point number (8 bytes).
int16_t INT2
Two-byte signed integer.
int64_t INT8
Eight-byte signed integer; on some platforms this is equivalent to long int instead.
uint16_t UINT2
Two-byte unsigned integer.
char CHAR
One-byte signed integer, see Headers LAL(Atomic)Datatypes.h for more details.
uint32_t UINT4
Four-byte unsigned integer.
float complex COMPLEX8
Single-precision floating-point complex number (8 bytes total)
int32_t INT4
Four-byte signed integer.
float REAL4
Single precision real floating-point number (4 bytes).
Vector of type CHAR, see DATATYPE-Vector types for more details.
LAL status structure, see The LALStatus structure for more details.
This structure stores a number of null-terminated strings of arbitrary length.
CHAR ** tokens
A list of pointers to the individual tokens; the elements tokens[0..nTokens-1] point to tokens,...
CHARVector * list
The flattened list of tokens, separated by (and terminated with) '\0' characters.
UINT4 nTokens
The number of tokens in the list.