Funny and strange UNIX happenings and C programming tips.

Funny and cool Linux tips 1337 or Leet in the UNIX time. -01:44:57– gordon@deusexmachina [~]$ date +%s 1337096699-01:44:57– gordon@deusexmachina [~]$ date +%s 1337096699 The missing days in 1752. I have mentioned this before, but it is worth mentioning again. -01:45:31– gordon@deusexmachina [~]$ cal 9 1752 September 1752 Su Mo Tu We Th Fr Sa 1 … Read more

Wrapping the printf() statement onto multiple lines in C and some other useful samples.

This code sample shows how we are wrapping a printf() statement onto multiple lines using backslashes. #include "stdio.h"   #define hello "Hello World."   int main(int argc, char* argv[]) { printf("This is a very long sentence we are handing down\n"\ "Mr smith, do you have anything to say for yourself"\ "?");   printf("%s\n", hello);   … Read more