KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Using GDB, I find I get a segmentation fault when I attempt this operation: strcat(string,¤tChar); Given that string is initialized as char * string = ""; and currentChar is char currentChar = 'B'; Why does this result in a segmentation fault? If strcat can't be used for this, how else can I concat a char onto a string?
Tags (comma-separated)
Save Edits
Cancel