}
}
}
- if ((rptr=strrchr(infile,DIR_SEPARATOR)) != NULL) {
- buf = strdup(infile);
- buf[(int)(rptr-infile)] = '\0';
- srenew(cppopts,++ncppopts);
- snew(cppopts[ncppopts-1],strlen(buf)+4);
- sprintf(cppopts[ncppopts-1],"-I%s",buf);
- sfree(buf);
- }
srenew(cppopts,++ncppopts);
cppopts[ncppopts-1] = NULL;
strcpy(out_file,base);
fnr = file_nr;
- while(fnr > 0) {
- fnr = fnr/10;
+ do {
+ fnr /= 10;
nd++;
- }
+ } while (fnr > 0);
+
if (nd < ndigit)
strncat(out_file,"00000000000",ndigit-nd);
sprintf(nbuf,"%d.",file_nr);
"file" },
{ "-nzero", FALSE, etINT,
{ &nzero },
- "Prepend file number in case you use the -sep flag "
- "with this number of zeroes" },
+ "If the -sep flag is set, use these many digits "
+ "for the file numbers and prepend zeros as needed" },
{ "-dropunder", FALSE, etREAL,
{ &dropunder }, "Drop all frames below this value" },
{ "-dropover", FALSE, etREAL,