xref: /freebsd/contrib/pkgconf/doc/libpkgconf-argvsplit.rst (revision a3cefe7f2b4df0f70ff92d4570ce18e517af43ec)
1
2libpkgconf `argvsplit` module
3=============================
4
5This is a lowlevel module which provides parsing of strings into argument vectors,
6similar to what a shell would do.
7
8.. c:function:: void pkgconf_argv_free(char **argv)
9
10   Frees an argument vector.
11
12   :param char** argv: The argument vector to free.
13   :return: nothing
14
15.. c:function:: int pkgconf_argv_split(const char *src, int *argc, char ***argv)
16
17   Splits a string into an argument vector.
18
19   :param char*   src: The string to split.
20   :param int*    argc: A pointer to an integer to store the argument count.
21   :param char*** argv: A pointer to a pointer for an argument vector.
22   :return: 0 on success, -1 on error.
23   :rtype: int
24