Categories
-
Recent Posts
Recent Comments
- Fabio Utzig on propertypp: Objective-C-like properties for C++ classes
- Fabio Utzig on Two Conclusions
- Fabio Utzig on Two Conclusions
- Mauricio Berni on Two Conclusions
- Fabio Mierlo on My trip to Seattle for the Amazon.com SDE interview
Archives
Monthly Archives: May 2009
Fibonacci
Um Coelho Mais dois E ainda outro Seguem assim até o infinito
Posted in Poetry, Português
Leave a comment
Using feof() and fread()
When reading single bytes from a file in C, one must pay attention to the correct usage of feof() and fread(). At first, the following piece of code seems to work correctly: const char *filename = "hello"; unsigned char byte; … Continue reading
Posted in C, English, Programming
3 Comments
