Changed cStringNoCopy to cString

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@3105 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 1998-10-23 12:14:28 +00:00
parent ec5df7b10a
commit bebb8238e5
4 changed files with 17 additions and 7 deletions

View file

@ -1,3 +1,6 @@
// Fri Oct 23 03:02:52 MET DST 1998 dave@turbocat.de
// cStringNoCopy -> cString
#include <Foundation/NSArray.h>
#include <Foundation/NSString.h>
#include <Foundation/NSHost.h>
@ -12,10 +15,10 @@ displayHost(NSHost* h)
printf("\n");
a = [h names];
for (i = 0; i < [a count]; i++)
printf("%s\n", [[a objectAtIndex:i] cStringNoCopy]);
printf("%s\n", [[a objectAtIndex:i] cString]);
a = [h addresses];
for (i = 0; i < [a count]; i++)
printf("%s\n", [[a objectAtIndex:i] cStringNoCopy]);
printf("%s\n", [[a objectAtIndex:i] cString]);
}
int