sscanf problem
sscanf problem
- Subject: sscanf problem
- From: David Dauer <email@hidden>
- Date: Wed, 28 Jan 2004 14:10:36 +0100
Hello,
I've got a strange problem using sscanf:
const char *s;
char theString[ 256 ];
s = "123 456 \"blah\"";
int theInt1;
int theInt2;
sscanf( s, "%d %d \"%s\"", &theInt1, &theInt2, theString );
NSLog(@"%@",[NSString stringWithCString:theString]);
This returns a string 'blah"' - and i've no idea why i get a quote sign at
the end of the string.
Anyone knows why this happens and how to fix that?
Thanks
David
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.