C Programming

Explore the rich collection of articles in the folowing subjects.


Protocol packets using Data Structures

In this article, we will see the use of direct type-casting in C for converting one structure into another. A network...

Design your interface - with a "shim" layer!

In this post, we will see how code modularity and layered-ness can be exploited neatly to insert more functionality as...

Design your modules like a professional!

In this post, we are going to talk about creating modular code. We take up a simple example of an application-network...

Typedef your data types!

Data types are the most important part of any C/C++ program - be it embedded systems, firmware or linux. The sad part...

Variables in header file - what's that all about?

In this post, we're going to look at how to safely declare and manage global variables in C when we are working with...

Know your logs!

In this article, we are going to look at how we can implement a very simple, but powerful and elegant logging API in...

5 maxims for a programmer to live by

A day comes in the life of every programmer when they have to refactor someone else's code, or their own code, or fix a...

Doing C OOP Style: Structure members as Class Attributes

In this post, we are going to discuss a classy technique to assign values to members of a structure in C programming...