Name:
Anonymous
2007-07-16 19:00
ID:1Qg4jL4B
char *foo = (char[52]){0,};
of course, this also works in C99 where it is more cool.
Name:
Anonymous
2007-07-16 19:01
ID:1Qg4jL4B
>>24
it's also a cool alternative to
char *foo = new char[52];
when you can't be arsed deleting/freeing it after you've used it. (happens at the end of the scope)
Name:
Anonymous
2007-07-17 2:39
ID:Heaven
>>24
it actually works ONLY in c99