Archive | August, 2011

A nasty string initialization bug in C

Today I encountered a bug that was quite difficult to find regarding strings. In order for strings to work they must be null-terminated, and this implies that an array of characters can contain a string with a length equal to the array size minus one, because there must be space for the null character. I found out that, when initializing array of chars with strings, the compiler does not complain if just the null character doesn’t fit.

Continue Reading → embraces Twitter! embraces Twitter embraces Twitter has joined Twitter! I thought it would be a great way to get to know my readers and to share with you the blog posts I write.

When it comes to developing for embedded devices – it can be quite difficult to find good documentation or informative articles on the things we really need to know. I’m hoping that we can use Twitter to share links to the useful nuggets of information that we come across during our travels across the internet.

I will look forward to seeing you on Twitter! [© 2011]

Continue Reading →