{"id":6764,"date":"2022-12-20T19:33:36","date_gmt":"2022-12-20T22:33:36","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/tcl_findexecutable-man3\/"},"modified":"2022-12-20T19:33:36","modified_gmt":"2022-12-20T22:33:36","slug":"tcl_findexecutable-man3","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/tcl_findexecutable-man3\/","title":{"rendered":"Tcl_FindExecutable (man3)"},"content":{"rendered":"<h1 align=\"center\">Tcl_FindExecutable<\/h1>\n<p> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#SYNOPSIS\">SYNOPSIS<\/a><br \/> <a href=\"#ARGUMENTS\">ARGUMENTS<\/a><br \/> <a href=\"#DESCRIPTION\">DESCRIPTION<\/a><br \/> <a href=\"#KEYWORDS\">KEYWORDS<\/a> <\/p>\n<hr>\n<p>______________________________________________________________________________<\/p>\n<h2>NAME <a name=\"NAME\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Tcl_FindExecutable, Tcl_GetNameOfExecutable \u2212 identify or return the name of the binary file containing the application<\/p>\n<h2>SYNOPSIS <a name=\"SYNOPSIS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>#include <tcl.h><\/b><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">void <b><br \/> Tcl_FindExecutable<\/b>(<i>argv0<\/i>)<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">const char bodies manpages.csv script_extrae_body.sh script.sh usr <b><br \/> Tcl_GetNameOfExecutable<\/b>()<\/p>\n<h2>ARGUMENTS <a name=\"ARGUMENTS\"><\/a> <\/h2>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"24%\">\n<p style=\"margin-top: 1em\">char <i>*argv0<\/i> (in)<\/p>\n<\/td>\n<td width=\"16%\"><\/td>\n<td width=\"49%\">\n<p style=\"margin-top: 1em\">The first command-line argument to the program, which gives the application\u2019s name.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:51%;\">______________________________________________________________________________<\/p>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">The <b>Tcl_FindExecutable<\/b> procedure computes the full path name of the executable file from which the application was invoked and saves it for Tcl\u2019s internal use. The executable\u2019s path name is needed for several purposes in Tcl. For example, it is needed on some platforms in the implementation of the <b>load<\/b> command. It is also returned by the <b>info nameofexecutable<\/b> command.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">On UNIX platforms this procedure is typically invoked as the very first thing in the application\u2019s main program; it must be passed <i>argv[0]<\/i> as its argument. It is important not to change the working directory before the invocation. <b>Tcl_FindExecutable<\/b> uses <i>argv0<\/i> along with the <b>PATH<\/b> environment variable to find the application\u2019s executable, if possible. If it fails to find the binary, then future calls to <b>info nameofexecutable<\/b> will return an empty string.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">On Windows platforms this procedure is typically invoked as the very first thing in the application\u2019s main program as well; Its <i>argv[0]<\/i> argument is only used to indicate whether the executable has a stderr channel (any non-null value) or not (the value null). If <b>Tcl_SetPanicProc<\/b> is never called and no debugger is running, this determines whether the panic message is sent to stderr or to a standard system dialog.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>Tcl_GetNameOfExecutable<\/b> simply returns a pointer to the internal full path name of the executable file as computed by <b>Tcl_FindExecutable<\/b>. This procedure call is the C API equivalent to the <b>info nameofexecutable<\/b> command. NULL is returned if the internal full path name has not been computed or unknown.<\/p>\n<h2>KEYWORDS <a name=\"KEYWORDS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">binary, executable file<\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  Tcl_FindExecutable, Tcl_GetNameOfExecutable \u2212 identify or return the name of the binary file containing the application <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2536],"tags":[2538,3007,3137],"class_list":["post-6764","post","type-post","status-publish","format-standard","hentry","category-3-llamadas-de-bibliotecas","tag-2538","tag-man3","tag-tcl_findexecutable"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/6764","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/comments?post=6764"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/6764\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=6764"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=6764"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=6764"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}