Path: 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 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!"