DORSETRIGS
Home

c99 (7 post)


posts by category not found!

How to declare a constant "mutable pointer" to an immutable block of memory

A Constant Mutable Pointer A Deep Dive into C C Memory Management In C and C we often encounter scenarios where we need to work with data that should remain unc

2 min read 07-10-2024 22
How to declare a constant "mutable pointer" to an immutable block of memory
How to declare a constant "mutable pointer" to an immutable block of memory

Forcing C Standard in CMake

Forcing C Standards in C Make Ensuring Code Portability and Consistency Problem In C C development maintaining code consistency and portability across different

2 min read 04-10-2024 43
Forcing C Standard in CMake
Forcing C Standard in CMake

When inlining a C function, can an optimizing compiler dereference a pointer more times than explicitly written in the source code?

Understanding Pointer Dereferencing in C Function Inlining by Optimizing Compilers When inlining a C function a common question arises Can an optimizing compile

2 min read 25-09-2024 73
When inlining a C function, can an optimizing compiler dereference a pointer more times than explicitly written in the source code?
When inlining a C function, can an optimizing compiler dereference a pointer more times than explicitly written in the source code?

Realistic usage of the C99 'restrict' keyword?

Unleashing the Power of restrict in C Beyond the Promise The restrict keyword in C99 is often met with confusion and a sense of why bother While it might seem l

2 min read 07-09-2024 47
Realistic usage of the C99 'restrict' keyword?
Realistic usage of the C99 'restrict' keyword?

GCC compiler handles "char * str" and "char str[]" with the & operator differently

The Curious Case of char and char in GCC Understanding Address Behavior When working with pointers and arrays in C you might encounter seemingly strange behavio

2 min read 29-08-2024 47
GCC compiler handles "char * str" and "char str[]" with the & operator differently
GCC compiler handles "char * str" and "char str[]" with the & operator differently

Using previously set fields when initializing structure with compound literals

Initializing Structures with Compound Literals Understanding the Behavior of Field References This article delves into a curious behavior when initializing stru

2 min read 29-08-2024 50
Using previously set fields when initializing structure with compound literals
Using previously set fields when initializing structure with compound literals

format string and vararg - can I tell compiler to check them?

Format String and Vararg Can I Tell the Compiler to Check Them In the realm of C programming format strings and variable arguments varargs are powerful tools fo

2 min read 27-08-2024 58
format string and vararg - can I tell compiler to check them?
format string and vararg - can I tell compiler to check them?