| getconf getConf´Â ±¸¼º ÆÄÀÏ¿¡¼ name = value ½ÖÀ» °Ë»ö ÇÒ ¼öÀÖ´Â C ÇÁ·Î±×·¥ÀÔ´Ï´Ù. |
Áö±Ý ´Ù¿î·Îµå |
getconf ¼øÀ§ ¹× ¿ä¾à
- °Ô½ÃÀÚ À̸§:
- Kevin Waldron
- °Ô½ÃÀÚ À¥»çÀÌÆ®:
- http://www.zazzybob.com/sh_config.html
getconf ű×
getconf ¼³¸í
getConf´Â ±¸¼º ÆÄÀÏ¿¡¼ name = value ½ÖÀ» °Ë»ö ÇÒ ¼öÀÖ´Â C ÇÁ·Î±×·¥ÀÔ´Ï´Ù. getConf´Â ±¸¼º ÆÄÀÏ¿¡¼ À̸§ = °ª ½ÖÀ» °Ë»ö ÇÒ ¼öÀÖ´Â C ÇÁ·Î±×·¥ÀÔ´Ï´Ù. #Include #include #include #include "getconf.h"int main ( int argc, char * argv []) {struct config c; char * vars ; char * vals ; char * configfile = "getconf_test.conf"; int ¶óÀÎ; int count; ¶óÀÎ = OPEN_FILE (configfile); if (line <0) {fprintf (stderr, "configfile) % sn", configfileÀ» ÀÐÀ» ¼ö ¾ø½À´Ï´Ù. Ãⱸ (exit_failure); } get_config (c); for (count = 0; count
getconf °ü·Ã ¼ÒÇÁÆ®¿þ¾î