Posted by Cruinh on July 29, 1999 at 21:09:12:
In Reply to: Problems with strcat parameters posted by Cruinh on July 29, 1999 at 20:56:47:
: have two strings that I want to concatenate, but I can't figure out how to get them to both work in the strcat function together.
: one of the strings is a variable declared like this:
: char *output;
: and the other was just a constant "/".
: I tried this:
: strcat(output,"/");
: but it doesn't work. Can anyone give me some suggestions? Thanks! I actually think I'll be basically done if I get this figured out!
by the way, I just realized that I'd have to have a string for strcat to return its result to, but that still doesn't solve my problem. :)
i.e. *output = strcat(output,"/");
...or whatever it would be. Did I mention strings really confuse me sometimes?