KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I've been working on a project in C that requires me to mess around with strings a lot. Normally, I do program in C++, so this is a bit different than just saying string.empty(). I'm wondering what would be the proper way to empty a string in C. Would this be it? buffer[80] = "Hello World!\n"; // ... strcpy(buffer, "");
Tags (comma-separated)
Save Edits
Cancel