D said:
How do you put a comma in a string that's passed
as a function argument. The compiler thinks it's the
end of that argument and I've tried the /, and "," but
they don't seem to work.
You'll have to show some code, since the behaviour you report is bizarre.
See what happens with the following code:
#include <stdio.h>
void showargs(const char *s, const char *t, int n)
{
printf("This function displays two string arguments,\n"
"followed by an integer one.\n"
"first string: \"%s\"\n"
"second string: \"%s\"\n" "the integer: %d\n", s, t, n);
}
int main(void)
{
showargs("This string has a comma (,) in it.",
"For that matter, so does this one.", 42);
return 0;
}
This function displays two string arguments,
followed by an integer one.
first string: "This string has a comma (,) in it."
second string: "For that matter, so does this one."
the integer: 42