getconf

Software screenshot:
getconf
Software ətraflı:
Version: 0.1
Tarixi Upload: 2 Jun 15
Geliştirici: Kevin Waldron
Lisenziya: Pulsuz
Məşhurluq: 2

Rating: nan/5 (Total Votes: 0)

getconf konfiqurasiya faylı NAME = VALUE cüt ala C proqramdır.
Nümunə:
# daxildir
# daxildir
# daxildir
# daxildir "getconf.h"
int əsas (int argc, char * argv [])
{
  struct config c;
  char * [MAX_LINES] vars;
  char * vals [MAX_LINES];
  char * configfile = "getconf_test.conf";
  int xətləri;
  int saymaq;
  xətləri = open_file (configfile);
  əgər (xətləri <0)
  {
fprintf (stderr, configfile "konfiqurasiya faylını% sn oxumaq mümkün deyil");
exit (EXIT_FAILURE);
  }
  
  get_config (& c);
  üçün (sayı = 0;   {
* (Saymaq + vars) = (char *) malloc (strlen (c.var [count]));
    * (Saymaq + vals) = (char *) malloc (strlen (c.val [count]));
    strcpy (* (vars + count) c.var [count]);
strcpy (* (vals + count) c.val [count]);
printf ("Dəyişən:% sttValue:% sn" * (vars (vals +) saymaq *) saymaq +);
  }
  / * İndi təmizləmə * /
  üçün (sayı = 0;   {
pulsuz ([count] vars);
pulsuz (vals [count]);
  }
  0 qayıtmaq;
}

Geliştirici digər proqram Kevin Waldron

uname
uname

2 Jun 15

ZMsgServer
ZMsgServer

3 Jun 15

Şərh getconf

Şərhlər tapılmadı
Şərh əlavə
Images yandırın!