333
334
335
336
337
338
339
340
341
342
343
344
345
346
|
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
|
+
|
break;
}
return(-1);
}
static int lc_process_environment(const char *appname) {
#ifndef ENABLE_SMALL
struct lc_varhandler_st *handler = NULL;
size_t appnamelen = 0;
char varnamebuf[128] = {0};
char **currvar;
char *sep = NULL, *value = NULL, *cmd = NULL;
char *ucase_appname = NULL, *ucase_appname_itr = NULL;
char *lastcomponent_handler = NULL;
|
448
449
450
451
452
453
454
455
456
457
458
459
460
461
|
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
|
+
|
break;
}
}
free(ucase_appname);
#endif
return(0);
}
static int lc_process_cmdline(int argc, char **argv) {
struct lc_varhandler_st *handler = NULL;
char *cmdarg = NULL, *cmdoptarg = NULL;
char *lastcomponent_handler = NULL;
|