Mail Archives: djgpp-workers/1999/04/29/12:52:13
>
> On Wed, 28 Apr 1999, I wrote:
>
> code doesn't seem too large. See the diffs below. Please comment on the
> idea and its implementation, so we could put this problem behind us.
>
Since I obviously like the idea, I'll just comment on the implementation.
I used the sample program below to test to modified putpath.c and
haven't find a problem with the enhancement so far.
One question unrelated to your changes: Shouldn't \dev\null be
equivalent to /dev/null? With the sample program below '/dev/null'
returns 'c:/djgpp/projects/putpath/nul' and '\dev\null' returns 'c:/dev/null'.
'c:/djgpp/projects/putpath' is the working directory.
#include <dos.h>
#include <stdio.h>
int main(int argc, char **argv)
{
char cooked_name[FILENAME_MAX];
int i = 1;
if (argc < 2)
return 0;
while (i < argc)
{
_fixpath (argv[i], cooked_name);
printf("arg: %s\n", cooked_name);
++i;
}
return 0;
}
---
Mark Elbrecht, snowball3 AT bigfoot DOT com
http://snowball.frogspace.net/
- Raw text -