Is there a rule of thumb as to when we would use a
static inline function in the header file versus a normal function in the .c file?
I found this here:
The point of making a function inline is to hint to the compiler that it is worth making some form of extra effort to call the function faster than it would otherwise - generally by substituting the code of the function into its caller. As well as eliminating the need for a call and return sequence, it might allow the compiler to perform certain optimizations between the bodies of both functions.
So it’s worth making something a static inline function when it is likely to be called often? (And/or rather short?)