📄 qccsetenv.3
字号:
.TH QCCENV 3 "QCCPACK" "".SH NAMEQccSetEnv, QccGetEnv \- environment-variable operations.SH SYNOPSIS.B #include "libQccPack.h".sp.BI "int QccSetEnv(const char *" environment_variable ", const char *" value );.br.BI "int QccGetEnv(const char *" environment_variable ", QccString " returned_value );.SH DESCRIPTION.B QccSetEnv()sets the environment variable whose name is in string.I environment_variableto the value contained in string.IR value ,if the specified environment variable does not already exist in theenvironment. If the environment variable does already exist in theenvironment, .B QccSetEnv()does nothing..LP.B QccGetEnv()returns the value of the specified.I environment_variableas the string.IR returned_value .The.I returned_valueis truncated to .B QCCSTRINGLENcharacters, if necessary.Space for .I returned_valuemust be allocated prior to calling.BR QccGetEnv() ..B QccGetEnv() will return an error if the specified.I environment_variabledoes not exist in the environment..SH "RETURNED VALUES"These routines return 0 on success, and 1 on failure.In addition, upon error,.B QccGetEnv()sets.I returned_valueto be a zero-length string..SH "SEE ALSO".BR QccString (3),.BR QccPack (3),.BR getenv (3),.BR putenv (3),.BR environ (5).SH AUTHORCopyright (C) 1997-2009 James E. Fowler.\" The programs herein are free software; you can redistribute them an.or.\" modify them under the terms of the GNU General Public License.\" as published by the Free Software Foundation; either version 2.\" of the License, or (at your option) any later version..\" .\" These programs are distributed in the hope that they will be useful,.\" but WITHOUT ANY WARRANTY; without even the implied warranty of.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the.\" GNU General Public License for more details..\" .\" You should have received a copy of the GNU General Public License.\" along with these programs; if not, write to the Free Software.\" Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -