This shows you the differences between two versions of the page.
— | sdk:scripts:read-config [2015/05/05 15:04] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== SDK Script read-config.are ====== | ||
+ | <code c read-config.are> | ||
+ | /* DESC: This script can be used to read a configuration parameter. | ||
+ | * Copyright (C) 2012 NetModule AG, Switzerland | ||
+ | */ | ||
+ | |||
+ | void usage() { | ||
+ | printf(" | ||
+ | } | ||
+ | |||
+ | if (argc < 2) { | ||
+ | usage(); | ||
+ | } else { | ||
+ | ret = nb_config_get(argv[1]); | ||
+ | printf(" | ||
+ | } | ||
+ | |||
+ | exit(0); | ||
+ | |||
+ | </ | ||