diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2020-02-08 12:28:34 +0100 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2020-02-08 12:28:34 +0100 |
commit | fb4c5631325e49363ebe72076a0d422fd9e5e627 (patch) | |
tree | 85b4b74c9a4ba1fdfe78d9163399ac1a23f2868f /docs/src | |
parent | 21aff3b4c430e73da8364ddfcec87746689988b4 (diff) | |
download | libuv-fb4c5631325e49363ebe72076a0d422fd9e5e627.tar.gz libuv-fb4c5631325e49363ebe72076a0d422fd9e5e627.zip |
docs: uv_setup_args() may take ownership of argv
PR-URL: https://github.com/libuv/libuv/pull/2668
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
Diffstat (limited to 'docs/src')
-rw-r--r-- | docs/src/misc.rst | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/docs/src/misc.rst b/docs/src/misc.rst index 7cfac85f..d9bf3aef 100644 --- a/docs/src/misc.rst +++ b/docs/src/misc.rst @@ -244,6 +244,15 @@ API .. c:function:: char** uv_setup_args(int argc, char** argv) Store the program arguments. Required for getting / setting the process title. + Libuv may take ownership of the memory that `argv` points to. This function + should be called exactly once, at program start-up. + + Example: + + :: + + argv = uv_setup_args(argc, argv); /* May return a copy of argv. */ + .. c:function:: int uv_get_process_title(char* buffer, size_t size) |