Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 Aug 1997 13:34:39 -0400 (EDT)
From:      Tim Vanderhoek <hoek@hwcn.org>
To:        Mikael Karpberg <karpen@ocean.campus.luth.se>
Cc:        Darren Reed <avalon@coombs.anu.edu.au>, hackers@FreeBSD.ORG
Subject:   Re: creating man 9f
Message-ID:  <Pine.GSO.3.96.970810132927.16737B-100000@james.freenet.hamilton.on.ca>
In-Reply-To: <199708101505.RAA12760@ocean.campus.luth.se>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 10 Aug 1997, Mikael Karpberg wrote:

> Not really realted, but it's always annoyed me that all the strcat and strcpy
> functions are so ineffective. They return a pointer to the buffer you
> supply to the function (which is useless since you have it already) and
> not a pointer to the trailing NUL. So if you want to add two strings you

The GNU C library includes stpcpy(3), which does what you
describe above.  I find sprintf() easier, but there is precedence
for the extension you describe.  :)

Hehe.  "This function is not part of the ANSI or POSIX standards,
and is not customary on Unix systems, but we did not invent it
either.  Perhaps it comes from MS-DOG." - GNU C lib ref. manual


--
Outnumbered?  Maybe.  Outspoken?  Never!
tIM...HOEk




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.3.96.970810132927.16737B-100000>