/explore

Click through on any links that interest you or select the planets on the right to continue exploring the Outer Web.
You are here

kristerw.blogspot.com
| | blog.oddbit.com
6.4 parsecs away

Travel
| | Overview I was recently working with someone else's C source and I wanted to add some basic error checking without mucking up the code with a bunch of if statements and calls to perror. I ended up implementing a simple must function that checks the return value of an expression, and exits with an error if the return value is less than 0. You use it like this: must(fd = open("textfile.txt", O_RDONLY)); Or:
| | gist.github.com
5.9 parsecs away

Travel
| | GitHub Gist: instantly share code, notes, and snippets.
| | satharus.me
4.5 parsecs away

Travel
| | There is a very high chance that if you read my blog, you've seen the line of code return 0; at some point. Specifically, you've probably seen it in a main()...
| | michaelscodingspot.com
24.6 parsecs away

Travel
| Michael Shpilt's Blog on .NET software development, C#, performance, debugging, and programming productivity