Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!mnetor!seismo!elsie!ado
From: ado@elsie.UUCP (Arthur David Olson)
Newsgroups: comp.unix.questions
Subject: Are there systems where strcpy doesn't return a value?
Message-ID: <7302@elsie.UUCP>
Date: Wed, 24-Dec-86 14:22:29 EST
Article-I.D.: elsie.7302
Posted: Wed Dec 24 14:22:29 1986
Date-Received: Wed, 24-Dec-86 21:07:10 EST
Followup-To: poster
Organization: NIH-LEC, Bethesda, MD
Lines: 26

On our MORE/bsd 4.3 system, if I use "lint -p" on these lines:
	#include "stdio.h"

	extern char *	strcpy();

	main()
	{
		char	buf[20];

		return strcpy(buf, "Hello, world.\n") != buf;
	}
I get this output:
	strcpy value is used, but none returned

On System V-based systems, no such warning is produced.

My question: Is BSD right, or is System V right?  Are there systems on which
strcpy does not return a value?

Please mail replies to me, rather than posting an article to this news group.
Thanks.
--
UNIX is a registered trademark of AT&T.
--
	UUCP: ..decvax!seismo!elsie!ado   ARPA: elsie!ado@seismo.ARPA
	DEC, VAX, Elsie & Ado are Digital, Borden & Ampex trademarks.