Showing posts with label C. Show all posts
Showing posts with label C. Show all posts

Wednesday, August 13, 2008

Find the bug (Embedded C)

Found this gem a while ago.

void foo (int parameter)
{
int i = 0;
char buffer[64] = {};
int temp = parameter;

for (i=0;i<64;i++);
{
buffer[i] = 0;
}
}