🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #13061

Re: strins()

#13061
From: Chuck McManis
Date: Mon, 12 Jun 1989 01:34
26 lines
1118 bytes
SUMMARY:
	(void) strins(s1, s2)
	char *s1, *s2;

Null terminated string s2 is copied into the front of null terminated
string s1. So if s2 had a pointer to "foo" in it and s1 had a pointer
to "bar" in it, after the call s1 will point to a string "foobar".

Probably the best way to simulate this is with :
string(s1, s2)
	char	*s1, *s2;
{
	char tmp[80];

	strcpy(tmp, s1);
	strcat(tmp, s2);
	strcpy(s1, tmp);
	return;
}


--Chuck McManis
uucp: {anywhere}!sun!cmcmanis   BIX: cmcmanis  ARPAnet: cmcmanis@sun.com
These opinions are my own and no one elses, but you knew that didn't you.
"A most excellent barbarian ... Genghis Kahn!"
Technical Details
Message-ID: <109394@sun.Eng.Sun.COM>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!cs.utexas.edu!rutgers!sun-barr!sun!pepper!cmcmanis
References: <0929.AA0929@caleb>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!cs.utexas.edu!rutgers!sun-barr!sun!pepper!cmcmanis
From: cmcmanis%pepper@Sun.COM (Chuck McManis)
Newsgroups: comp.sys.amiga.tech
Subject: Re: strins()
Keywords: Lattice C Manx Aztec C strins()
Message-ID: <109394@sun.Eng.Sun.COM>
Date: 12 Jun 89 01:34:18 GMT
References: <0929.AA0929@caleb>
Sender: news@sun.Eng.Sun.COM
Reply-To: cmcmanis@sun.UUCP (Chuck McManis)
Organization: Sun Microsystems, Mountain View
Lines: 26