Say I want to append a string onto the end of a string received in the form of a command line argument and assigned to a pointer-to-char. How do I do that? Can I use strcat(), or is that not a safe thing to do?
Say I want to append a string onto the end of a string received in the form of a command line argument and assigned to a pointer-to-char. How do I do that? Can I use strcat(), or is that not a safe thing to do?
I see. I'm using malloc() now and everything seems fine.