Explore >> Select a destination


You are here

fdiv.net
| | blog.oddbit.com
14.3 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:
| | blog.httrack.com
14.0 parsecs away

Travel
| | I Found A Bug In strncat() 31 August 2014 Yes, A Bug This code wo...
| | idea.popcount.org
13.9 parsecs away

Travel
| |
| | ochagavia.nl
102.4 parsecs away

Travel
| Advent of code has come and passed, what should I do now with so much free time? Fear not! The JIT calculator challenge is here. 1. The challenge Back when Rust was in its infancy, the official website featured an example program to showcase the language's syntax. It was a toy calculator, implemented as an interpreter in 20 lines of code. Why talk about website archaeology, though? We are not here for nostalgia's sake, are we?