29int checkUIntArg(
int name,
unsigned int* value,
const char* optArg);
int getInt(char *ptr)
Parses an integer from a string.
Definition: parseargs.c:258
int getIntsFromFile(size_t maxCount, int *arr, FILE *file)
Reads integers from file until EOF or maxCount is reached.
Definition: parseargs.c:338
double getDouble(char *ptr)
Parses a double from a string.
Definition: parseargs.c:276
int checkFileArg(int name, FILE **filePtr, const char *optArg, const char *mode)
Parses command line arguments and fills the CapConfig struct.
Definition: parseargs.c:58
int checkUIntArg(int name, unsigned int *value, const char *optArg)
Checks if the provided argument is a valid integer and parses it.
Definition: parseargs.c:43
int getDoublesFromStdin(size_t maxCount, double *arr)
Reads doubles from standard input until EOF or maxCount is reached.
Definition: parseargs.c:299
void parseArguments(int argc, char *argv[], CapConfig *cfg)
Parses command line arguments and fills the CapConfig struct.
Definition: parseargs.c:157
brief struct to hold the configuration parameters for the capture process
Definition: config.h:8