33 #include "opal_config.h"
35 #ifdef HAVE_SYS_TYPES_H
36 #include <sys/types.h>
70 OPAL_DECLSPEC
int opal_argv_append(
int *argc,
char ***argv,
const char *arg) __opal_attribute_nonnull__(1) __opal_attribute_nonnull__(3);
147 OPAL_DECLSPEC
char **
opal_argv_split(const
char *src_string,
int delimiter) __opal_attribute_malloc__ __opal_attribute_warn_unused_result__;
164 OPAL_DECLSPEC
char **
opal_argv_split_with_empty(const
char *src_string,
int delimiter) __opal_attribute_malloc__ __opal_attribute_warn_unused_result__;
194 OPAL_DECLSPEC
char *
opal_argv_join(
char **argv,
int delimiter) __opal_attribute_malloc__ __opal_attribute_warn_unused_result__;
196 OPAL_DECLSPEC
char *opal_argv_join_range(
char **argv,
size_t start,
size_t end,
int delimiter) __opal_attribute_malloc__ __opal_attribute_warn_unused_result__;
221 OPAL_DECLSPEC
char **
opal_argv_copy(
char **argv) __opal_attribute_malloc__ __opal_attribute_warn_unused_result__;
249 int start,
int num_to_delete);
272 OPAL_DECLSPEC
int opal_argv_insert(
char ***target,
int start,
char **source);
OPAL_DECLSPEC char ** opal_argv_split_with_empty(const char *src_string, int delimiter) __opal_attribute_malloc__ __opal_attribute_warn_unused_result__
Split a string into a NULL-terminated argv array.
Definition: argv.c:254
OPAL_DECLSPEC char ** opal_argv_copy(char **argv) __opal_attribute_malloc__ __opal_attribute_warn_unused_result__
Copy a NULL-terminated argv array.
Definition: argv.c:413
OPAL_DECLSPEC int opal_argv_insert_element(char ***target, int location, char *source)
Insert one argv element in front of a specific position in an array.
Definition: argv.c:547
OPAL_DECLSPEC int opal_argv_insert(char ***target, int start, char **source)
Insert one argv array into the middle of another.
Definition: argv.c:494
OPAL_DECLSPEC size_t opal_argv_len(char **argv)
Return the number of bytes consumed by an argv array.
Definition: argv.c:392
OPAL_DECLSPEC int opal_argv_append_nosize(char ***argv, const char *arg)
Append to an argv-style array, but ignore the size of the array.
Definition: argv.c:53
OPAL_DECLSPEC int opal_argv_count(char **argv)
Return the length of a NULL-terminated argv array.
Definition: argv.c:262
OPAL_DECLSPEC void opal_argv_free(char **argv)
Free a NULL-terminated argv array.
Definition: argv.c:157
OPAL_DECLSPEC int opal_argv_delete(int *argc, char ***argv, int start, int num_to_delete)
Delete one or more tokens from the middle of an argv.
Definition: argv.c:441
OPAL_DECLSPEC char ** opal_argv_split(const char *src_string, int delimiter) __opal_attribute_malloc__ __opal_attribute_warn_unused_result__
Split a string into a NULL-terminated argv array.
Definition: argv.c:249
OPAL_DECLSPEC int opal_argv_prepend_nosize(char ***argv, const char *arg)
Insert the provided arg at the beginning of the array.
Definition: argv.c:93
OPAL_DECLSPEC char * opal_argv_join(char **argv, int delimiter) __opal_attribute_malloc__ __opal_attribute_warn_unused_result__
Join all the elements of an argv array into a single newly-allocated string.
Definition: argv.c:281
OPAL_DECLSPEC int opal_argv_append_unique_nosize(char ***argv, const char *arg, bool overwrite)
Append to an argv-style array, but only if the provided argument doesn't already exist somewhere in t...
Definition: argv.c:127
BEGIN_C_DECLS OPAL_DECLSPEC int opal_argv_append(int *argc, char ***argv, const char *arg) __opal_attribute_nonnull__(1) __opal_attribute_nonnull__(3)
Append a string (by value) to an new or existing NULL-terminated argv array.
Definition: argv.c:39