/* save the command line for the record
* (we don't bother about escaping the shell special characters)
*/
-
+
j = 0;
for(i=1; i<argc; i++) {
j += strlen(argv[i])+1;
switch(oc) {
case 'W':
if(sscanf(optarg, "%d", &warnlevel) < 1 || warnlevel < 0) {
- fprintf(stderr, "**** warning level must be a positive number\n");
+ fprintf(stderr, "**** warning level must be a positive number: %s (%d)\n", optarg, warnlevel);
exit(1);
}
break;
break;
}
}
+
argc-=optind-1; /* the rest of code counts from argv[0] */
argv+=optind-1;
usage();
exit(1);
}
-
/* try to guess the language by the locale used */
if(uni_lang_selected==0 && (lang=getenv("LANG"))!=0 ) {
for(i=0; i < sizeof uni_lang/sizeof(struct uni_language); i++) {