no way to compare when less than two revisions

Differences

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("usage: read-config.are <config-key>\n");
 +}
 +
 +if (argc < 2) {
 +    usage();
 +} else {
 +    ret = nb_config_get(argv[1]);
 +    printf("%s=%s\n", argv[1], ret);
 +}
 +
 +exit(0);
 +
 +</code>