www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1999/04/29/12:52:13

Message-Id: <199904291651.QAA22874@out1.ibm.net>
From: "Mark E." <snowball3 AT bigfoot DOT com>
To: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>, djgpp-workers AT delorie DOT com
Date: Thu, 29 Apr 1999 12:52:07 -0400
MIME-Version: 1.0
Subject: Re: v2.03: wrapping up
References: <Pine DOT SUN DOT 3 DOT 91 DOT 990428095859 DOT 25283J-100000 AT is>
In-reply-to: <Pine.SUN.3.91.990429101241.6487B-100000@is>
X-mailer: Pegasus Mail for Win32 (v3.01d)
Reply-To: djgpp-workers AT delorie DOT com

> 
> 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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019