🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #3784

Re: gets() and getchar

#3784
From: halasz
Date: Sat, 19 Aug 1995 00:07
9 lines
870 bytes
In article <jeremy.808649850@suede.sw.oz.au>, jeremy@sw.oz.au (Jeremy Fitzhardinge) writes
: ....
: Invariably, when I want strcpy to return something, I want it to return
: a pointer the '\0' at the end of the destination string it's just written.
: I end up having to either "know" the length of the string, or use strlen
: on the result to find the end, or use my own strcpy which returns a more
: useful thing.

Yes indeed!  And the behavior of "memccpy", where it is, is (almost) fine.
Technical Details
Message-ID: <4139vq$or9@caip.rutgers.edu>
Path: arc1-ca.pugleaf.net!caip.rutgers.edu!not-for-mail
References: <Pine.ULT.3.91.950807194041.19202A-100000@mars> <jeremy.808649850@suede.sw.oz.au>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!caip.rutgers.edu!not-for-mail
From: halasz@caip.rutgers.edu
Newsgroups: comp.std.c
Subject: Re: gets() and getchar
Date: 18 Aug 1995 20:07:22 -0400
Organization: Rutgers University
Message-ID: <4139vq$or9@caip.rutgers.edu>
References: <Pine.ULT.3.91.950807194041.19202A-100000@mars> <jeremy.808649850@suede.sw.oz.au>
NNTP-Posting-Host: caip.rutgers.edu