January 21, 2008 – 4:21 pm
I am doing a lot of C programming this semester, including my own UNIX-inspired OS kernel. I’ve decided to make the move to VIM from emacs and it’s one that no one will regret. Although Vim has an incredible learning curve, the time spent early is fully compensated several times over if you do a […]
January 17, 2008 – 4:55 pm
strncpy and fgets are the more secure substitutes to strcpy and gets, respectively. The less secure versions are prone to buffer overflows, especially the notorious gets. Both functions fill a pre-allocated memory for strings while reading at most a specified number of characters. However, the ways these functions treat the source and destination are slightly […]
January 16, 2008 – 7:58 am
JSON is a happy, lightweight data-interchange format similar to XML. It’s often used in AJAX applications and is commonly offered as a response type (e.g. Yahoo, Google, Twitter). JSON is based on a subset of the JavaScript language but its syntax is similar to those of C-based languages, so it’s considered a “language-independent” format although […]