SETENV

Section: ¸®´ª½º ÇÁ·Î±×·¡¸Ó ¸Å´º¾ó (3)
Updated: 1993³â 4¿ù 4ÀÏ
Index
Return to Main Contents
 

À̸§

setenv - ȯ°æ º¯¼ö¸¦ ¹Ù²Ù°Å³ª Ãß°¡½ÃŲ´Ù.  

»ç¿ë¹ý

#include <stdlib.h>

int setenv(const char *name, const char *value, int overwrite);

void unsetenv(const char *name);
 

¼³¸í

setenv() ÇÔ¼ö´Â ¸¸ÀÏ nameÀÌ ÀÌ¹Ì Á¸ÀçÇÏÁö ¾Ê´Â´Ù¸é, °ª value¸¦ °¡Áö°í Àִ ȯ°æ º¯¼ö nameÀ» Ãß°¡½ÃŲ´Ù. ¸¸ÀÏ name°¡ ȯ°æ º¯¼ö¿¡ Á¸ÀçÇÑ´Ù¸é, overwrite°¡ 0 ÀÌ ¾Æ´Ï¶ó¸é ±× °ªÀº value·Î ¹Ù²ï´Ù. ¸¸ÀÏ overwrite°¡ 0 À̶ó¸é, nameÀÇ °ªÀº ¹Ù²îÁö ¾Ê´Â´Ù.

unsetenv() ÇÔ¼ö´Â ȯ°æ º¯¼ö¿¡¼­ º¯¼ö name ¸¦ Áö¿î´Ù.  

¹Ýȯ°ª

setenv() ÇÔ¼ö´Â ¼º°ø½Ã 0 À» ¹ÝȯÇϰųª, ¸¸ÀÏ È¯°æ º¯¼ö¿¡ °ø°£ÀÌ ÃæºÐÇÏÁö ¾Ê´Ù¸é -1À» ¹ÝȯÇÑ´Ù.  

ȣȯ

BSD 4.3  

°ü·Ã Ç׸ñ

getenv(3), putenv(3), environ(5)  

¿ªÀÚ

Á¤°­ÈÆ <skyeyes@soback.kornet.net>, 2001³â 3¿ù 12ÀÏ


 

Index

À̸§
»ç¿ë¹ý
¼³¸í
¹Ýȯ°ª
ȣȯ
°ü·Ã Ç׸ñ
¿ªÀÚ

This document was created by man2html, using the manual pages.
Time: 08:07:01 GMT, March 25, 2004