mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
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:
parent
ec5df7b10a
commit
bebb8238e5
4 changed files with 17 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue