Code Structure
Chaining C Functions Together
C is not generally known to offer function call chaining as is commonly found in many Object Orientated Languages. The following shows a C idiom for doing this.
C is not generally known to offer function call chaining as is commonly found in many Object Orientated Languages. The following shows a C idiom for doing this.
How coroutines (Protothreads) can be used with C to reduce the cost and complexity of small systems such as those found in IoT based products.
C is the predominant language used by firmware that must scale to any large degree. However attempting to scale it down can be a lot more tricky than scaling it up.
Introduction When writing multi-file C application, or inheriting a project others have worked on, it is always helpful to understand how the code is structured from a file level. Ideally, you want to try to keep module dependencies running in a single direction, limiting reverse dependencies. Keeping the code structure in check can Read more…