concatenate a variable sting after a constant string

3 posts / 0 new
Last post
JosDuchIt
JosDuchIt's picture
Offline
Last seen: 6 years 4 months ago
Joined: 2012-01-08 20:57
concatenate a variable sting after a constant string
char ConsInput[400]; would contain the variable string ( a command line ) It could be preceded by strings such as "Execute" or "LVAdd" I want to get the result in char ConsCopy[440]; Is there a standard or an easy way to do this?
afxgroup
afxgroup's picture
Offline
Last seen: 10 months 2 weeks ago
Joined: 2011-02-03 15:26
If I understand what you
If I understand what you mean, you can use snprintf http://libslack.org/manpages/snprintf.3.html
JosDuchIt
JosDuchIt's picture
Offline
Last seen: 6 years 4 months ago
Joined: 2012-01-08 20:57
Thanks. That seems to be
Thanks. That seems to be what i need.
Log in or register to post comments