delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2000/06/25/16:51:14

Message-Id: <200006252050.XAA03085@alpha.netvision.net.il>
Date: Sun, 25 Jun 2000 23:52:02 +0200
To: Laurynas Biveinis <lauras AT softhome DOT net>
X-Mailer: Emacs 20.6 (via feedmail 8.2.emacs20_6 I) and Blat ver 1.8.5b
From: "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il>
CC: djgpp-workers AT delorie DOT com
In-reply-to: <39563FB5.A8C1172F@softhome.net> (message from Laurynas Biveinis
on Sun, 25 Jun 2000 19:21:57 +0200)
Subject: Re: Patch: minor getcwd.c cleanup
References: <39563FB5 DOT A8C1172F AT softhome DOT net>
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> Date: Sun, 25 Jun 2000 19:21:57 +0200
> From: Laurynas Biveinis <lauras AT softhome DOT net>
>
> --- getcwd.c	1996/08/31 22:09:32	1.3
> +++ getcwd.c	2000/06/25 17:16:51
> @@ -4,8 +4,6 @@
>  #include <unistd.h>
>  #include <stdlib.h>
>  #include <stdio.h>
> -#include <ctype.h>
> -#include <string.h>

IMHO, it's not a good idea to remove <string.h>, since getcwd uses
memcpy and strcmp.  It's true that go32.h includes string.h already,
but how many people would expect that?  If someone removes go32.h,
they will have a puzzle on their hands.

- Raw text -


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