c-utils icon indicating copy to clipboard operation
c-utils copied to clipboard

Tiny, modular, drop-in, library of some most commonly used utility methods for C (embedded) applications. Intended to be used as a git-submodule inside your projects to kickstart development. See http...

Results 4 c-utils issues
Sort by recently updated
recently updated
newest added

[This commit](https://github.com/goToMain/c-utils/commit/3f343bc3dd292e58bfcaf368c5c8005b4aad9fc5) made building libOSDP on anything other than Linux or Windows impossible. Before that I solved it by implementing `gettimeofday` myself, but I never really liked this solution. I...

When I compiled libosdp with my project I getted errors: `multiple definition of 'u8_bit_reverse'` `multiple definition of 'u16_bit_reverse'` `multiple definition of 'u32_bit_reverse'` in every file that included `utils/utils.h`. I checked...

I'm using `libosdp-rs` in Zephyr building with GCC (defined `__BARE_METAL__`, `__ZEPHYR__ `). And I faced the following issues: - Duplicated symbol `gettimeofday` (linker issue) and - `__noreturn` undefined

# Summary The header **`include/utils/utils.h`** provides a portable shortcut for the GCC `[[fallthrough]]` attribute: ```c /* gcc attribute shorthands */ #ifndef __fallthrough #if __GNUC__ >= 7 #define __fallthrough __attribute__((fallthrough)) #else...