I have a program that disables other processes. The arguments of my program include the name of the process process that needs to be forked, and any arguments.
This means that when I make the call to exec (), I need to be able to handle all the number of arguments.
Any ideas?
Thank.
The function execvtakes a pointer to an array of arguments.
execv
As in main, the last element in the array must be a null pointer.
main
execl() NULL . , execv(), ; varargs C ( (, ) /usr/include/varargs.h -, !).
execl()
NULL
execv()
/usr/include/varargs.h
Source: https://habr.com/ru/post/1796543/More articles:Are binding domain models bad ideas? - asp.net-mvcWPF TextBox recalculates size - wpfDefault radioobuttonlist in ASP.NET MVC Razor - asp.net-mvcHow to convert, for example, "40 million" in 40 million dollars? - phpHow to change workspace in android? - androidJavascript keyboard event in an object - javascriptCan I use only TemporaryFileUploadHandler for a specific FileField? - djangoSqlAlchemy / Sqlite Distance calculation - pythonRazor Secrets - asp.net-mvcHow to find Windows Forms product code? - c #All Articles