|
From: Ed C. <em...@to...> - 2003-09-10 00:14:56
|
Hi - When I run the following code: char a = "Hello", b = "World", c[20]; sprintf(c, "%s %s", a, b); I expect c to contain "Hello World", but it contains "HelloWorld HelloWorld". In other words, it replaces EACH of the %s types in sprintf with a AND b. What's up with that? I'm doing almost exactly the same thing, elsewhere, with multiple arguments of the same type, and I'm not having problems there... Anybody who can help, I'd be much obliged! -Ed |