Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!columbia!cubmol!ping
From: ping@cubmol.BIO.COLUMBIA.EDU (Shiping Zhang)
Newsgroups: comp.lang.c
Subject: Re: passing *char parameters by reference
Message-ID: <318@cubmol.BIO.COLUMBIA.EDU>
Date: 13 Aug 89 21:55:32 GMT
References: <1424@novavax.UUCP> <660050@hpclwjm.HP.COM> <14280@haddock.ima.isc.com> <24555@iuvax.cs.indiana.edu>
Reply-To: ping@cubmol.UUCP (Shiping Zhang)
Organization: Dept. of Biology, Columbia Univ., New York, NY
Lines: 13

In article <24555@iuvax.cs.indiana.edu> bobmon@iuvax.cs.indiana.edu (RAMontante) writes:
>A minor comment...
>
>Among all the responses to this swap question, I think I saw _one_
>that suggested getting rid of the ampersands and passing in the array
>pointers (instead of the addresses of the array pointers).  All the
>I missing something?

Getting rid of the ampersands would not work as intended. Only the
first characters would be exchanged between the two strings.


-ping