This is the practice of Python C extensions.
How to Write and Debug C Extension Modules
Learning how to write a PHP extension
A simple example showing how to build and debug a CPython extension with gdb
Modern XHProf compatible PHP Profiler for PHP 7
C programming language examples, that are used in lectures.
A set of C/C++ examples for PicoScope oscilloscope and PicoLog data logger products.
Got any useful tips about SketchUp/ruby-c-extension-examples?
... I send out a list of most interesting libraries and apps in the "C" section to about 1100 subscribers.
Do you want it too?