Let Me Tell you about a C function called asprintf()

Before I begin, thanks to Suraj Pal, for his comments that improved this post. Now onto the scenario.Suppose you are working with a C/C++ function, passing around a string. This time you want to pass the variable by reference. This can be because: The string is big and you are working in a resource constrained… Continue reading Let Me Tell you about a C function called asprintf()

Using extern storage classifier to share variable across files in Embedded C

So, I was working on an ESP32 WROOM 32 chip for a hobby project. Specifically, working with connecting Xbox Controllers to the chip. The said chip is dual core and runs on FreeRTOS for scheduling tasks. I had never used any RTOS, and just jumped in on an example project. I split the modules of… Continue reading Using extern storage classifier to share variable across files in Embedded C