QPMS
Electromagnetic multiple scattering library and toolkit.
parsing.h
Go to the documentation of this file.
1 
4 #ifndef QPMS_PARSING_H
5 #define QPMS_PARSING_H
6 
7 #include <stddef.h>
8 
16 size_t qpms_parse_ndoubles(
17  double *target,
18  size_t n,
19  const char *orig
20 );
21 
34 size_t qpms_parse_doubles(
35  double **target,
36  size_t start_index,
37  const char *orig
38 );
39 
55  double **target,
56  size_t start_index, //< Starting index for writing the parsed values.
57  const char *filepath //< File to read from, or NULL, "", "-" to read from stdin.
58 );
59 
60 #endif // QPMS_PARSING_H
size_t qpms_parse_doubles(double **target, size_t start_index, const char *orig)
Definition: parsing.c:58
size_t qpms_parse_ndoubles(double *target, size_t n, const char *orig)
Definition: parsing.c:9
size_t qpms_parse_doubles_fromfile(double **target, size_t start_index, const char *filepath)
Definition: parsing.c:109