{"id":7388,"date":"2022-12-20T19:37:54","date_gmt":"2022-12-20T22:37:54","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/tcl_getcwd-man3-2\/"},"modified":"2022-12-20T19:37:54","modified_gmt":"2022-12-20T22:37:54","slug":"tcl_getcwd-man3-2","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/tcl_getcwd-man3-2\/","title":{"rendered":"Tcl_GetCwd (man3)"},"content":{"rendered":"<h1 align=\"center\">Tcl_GetCwd<\/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_GetCwd, Tcl_Chdir \u2212 manipulate the current working directory<\/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\">char bodies manpages.csv script_extrae_body.sh script.sh usr <b><br \/> Tcl_GetCwd<\/b>(<i>interp<\/i>, <i>bufferPtr<\/i>)<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">int <b><br \/> Tcl_Chdir<\/b>(<i>path<\/i>)<\/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=\"47%\">\n<p style=\"margin-top: 1em\">Tcl_Interp <i>*interp<\/i> (in)<\/p>\n<\/td>\n<td width=\"10%\"><\/td>\n<td width=\"32%\">\n<p style=\"margin-top: 1em\">Interpreter in which to report an error, if any.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"47%\">\n<p>Tcl_DString <i>*bufferPtr<\/i> (in\/out)<\/p>\n<\/td>\n<td width=\"10%\"><\/td>\n<td width=\"32%\">\n<p>This dynamic string is used to store the current working directory. At the time of the call it should be uninitialized or free. The caller must eventually call <b>Tcl_DStringFree<\/b> to free up anything stored here.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"47%\">\n<p>char <i>*path<\/i> (in)<\/p>\n<\/td>\n<td width=\"10%\"><\/td>\n<td width=\"32%\">\n<p>File path in UTF\u22128 format.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:68%;\">______________________________________________________________________________<\/p>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">These procedures may be used to manipulate the current working directory for the application. They provide C\u2212level access to the same functionality as the Tcl <b>pwd<\/b> command.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>Tcl_GetCwd<\/b> returns a pointer to a string specifying the current directory, or NULL if the current directory could not be determined. If NULL is returned, an error message is left in the <i>interp<\/i>\u2019s result. Storage for the result string is allocated in bufferPtr; the caller must call <b>Tcl_DStringFree()<\/b> when the result is no longer needed. The format of the path is UTF\u22128.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>Tcl_Chdir<\/b> changes the applications current working directory to the value specified in <i>path<\/i>. The format of the passed in string must be UTF\u22128. The function returns -1 on error or 0 on success.<\/p>\n<h2>KEYWORDS <a name=\"KEYWORDS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">pwd<\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  Tcl_GetCwd, Tcl_Chdir \u2212 manipulate the current working directory <\/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,3702],"class_list":["post-7388","post","type-post","status-publish","format-standard","hentry","category-3-llamadas-de-bibliotecas","tag-2538","tag-man3","tag-tcl_chdir"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/7388","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=7388"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/7388\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=7388"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=7388"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=7388"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}