This is some code from my etherShield web server project:
static uint8_t buf[BUFFER_SIZE+1];
As far as I can tell it creates an array of uint8 (chars?) with the length being +1 of the buffer_size. After I send_tcp() I want to empty out that buffer. Is there a way to init that buffer to nothing?
buf = ""; // or something?
Or do I have to loop through the whole buffer char by char setting it to \0?