Tag Archives: gcc

atoi and itoa

atoi and iota seem like perfect partners. atoi is the ‘ascii to integer’ function and itoa is the reverse, the ‘integer to ascii’ function. You would use atoi to convert a string, say, “23557” to the actual integer 23557. Similarly, you would use itoa to convert an integer, say 44711, to the equivalent string “44711”. […]

Getting Started With C Programming – Hello World Tutorial

If you’ve always wanted to dabble in C, but never quite gotten around to it, have a read through this and give it a go. It is much easier than you might think (easier now, in fact, than it ever has been), to write your first C program, and there is something so deliciously inviting […]

How To Compile a 32-bit Executable on 64-bit Fedora 19

You know how sometimes you just have to compile and run a 32 bit program on a 64 bit machine, and it’s really annoying that it doesn’t seem to work? Yeah, me too. Turns out it’s actually pretty straightforward on Fedora 19. First of all, you need to use the -m32 build flag. Below I’m […]