Advanced C programming codes