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
25cfc35dab
commit
dfca27ad7f
4 changed files with 17 additions and 7 deletions
|
@ -1,4 +1,6 @@
|
|||
/* A demonstration of writing and reading with NSArchiver */
|
||||
// Fri Oct 23 03:02:04 MET DST 1998 dave@turbocat.de
|
||||
// cStringNoCopy -> cString
|
||||
|
||||
#if 1
|
||||
|
||||
|
@ -30,7 +32,7 @@ int main()
|
|||
{
|
||||
id o, e = [set objectEnumerator];
|
||||
while ((o = [e nextObject]))
|
||||
printf("%s\n", [o cStringNoCopy]);
|
||||
printf("%s\n", [o cString]);
|
||||
}
|
||||
|
||||
apl = [[NSAutoreleasePool alloc] init];
|
||||
|
@ -68,7 +70,7 @@ printf("%u\n", [arc retainCount]);
|
|||
{
|
||||
id o, e = [set objectEnumerator];
|
||||
while ((o = [e nextObject]))
|
||||
printf("%s\n", [o cStringNoCopy]);
|
||||
printf("%s\n", [o cString]);
|
||||
}
|
||||
|
||||
/* Do the autorelease. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue