File: libpkgconf-argvsplit.rst

package info (click to toggle)
pkgconf 1.8.1-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,856 kB
  • sloc: ansic: 6,400; sh: 5,783; makefile: 212; python: 132
file content (23 lines) | stat: -rw-r--r-- 709 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23

libpkgconf `argvsplit` module
=============================

This is a lowlevel module which provides parsing of strings into argument vectors,
similar to what a shell would do.

.. c:function:: void pkgconf_argv_free(char **argv)

   Frees an argument vector.

   :param char** argv: The argument vector to free.
   :return: nothing

.. c:function:: int pkgconf_argv_split(const char *src, int *argc, char ***argv)

   Splits a string into an argument vector.

   :param char*   src: The string to split.
   :param int*    argc: A pointer to an integer to store the argument count.
   :param char*** argv: A pointer to a pointer for an argument vector.
   :return: 0 on success, -1 on error.
   :rtype: int