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>
This commit is contained in:
parent
21aff3b4c4
commit
fb4c563132
@ -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)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user