Archive for the 'C' Category
Opening a TUN Device on UNIX
The TUN/TAP interface under Linux provides user space access to Transport (Ethernet) or Network Layer (IP) traffic by allowing a developer to create a “virtual” interface that can be openend in user space as a file descriptor.
Read more
Spirit Vs. Lex/yacc/et al.
What are the differences and when should I use one or the other?
Read more
Why C Switch Statements Should go the way of the GOTO
The venerable C switch statement keeps showing up in other languages presumably because the people who write new languages are familiar with C and don’t really think about it.
Read more
Converting hex to Binary in 4 Languages
I’ve been playing around with some scripting languages recently so I thought I’d do a small example in a few different languages for laughs.
Read more