Have an array of chars like char members[255]. How can I empty it completely without using a loop?
char members[255];
By \"empty\" I mean that
Don't bother trying to zero-out your char array if you are dealing with strings. Below is a simple way to work with the char strings.
Copy (assign new string):
strcpy(members, "hello");
Concatenate (add the string):
strcat(members, " world");
Empty string:
members[0] = 0;
Simple like that.