Use @""-style strings.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@290 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Andrew McCallum 1995-04-05 20:34:40 +00:00
parent 6d6365e63c
commit baba8f65d9

View file

@ -1,4 +1,5 @@
#include "second-client.h"
#include <objects/String.h>
int main(int argc, char *argv[])
{
@ -8,12 +9,12 @@ int main(int argc, char *argv[])
char namebuf[16];
printf("Looking up server object on localhost with name `secondserver'\n");
server = [Connection rootProxyAtName:"secondserver"];
server = [Connection rootProxyAtName:@"secondserver"];
printf("Found server.\n");
/* Create an AppellationObject */
a1 = [[AppellationObject alloc] init];
sprintf(namebuf, "%d", getpid());
sprintf(namebuf, "%d", (int)getpid());
[a1 setAppellation:namebuf];
printf("This client has appellation %s\n", [a1 appellation]);