Blog
Page 275 of my articles, tutorials, and thoughts
Latest Articles
What are the differences between .so and .dylib on macOS?
# .so vs .dylib: Demystifying macOS Dynamic Libraries If you're a developer working on macOS, you might have encountered the confusion surrounding the differences between .so and .dylib. Fear not, as we're here to shed some light on this topic and provide
Why malloc+memset is slower than calloc?
š **Why malloc+memset is slower than calloc?** Have you ever wondered why `calloc` seems to be faster than `malloc` followed by `memset`? š¤ In theory, they both allocate memory, but there seems to be a significant performance difference. Let's dive into
Write applications in C or C++ for Android?
š¢ Calling all game developers! š® Are you looking to port your C game to Android but hitting a roadblock with Java's domination? Fear not š āāļø, because I've got some good news for you! š You can indeed write applications in C or C++ for Android! š±šŖ W
How to prevent SIGPIPEs (or handle them properly)
š **Title: Preventing SIGPIPEs: Keeping Your Server Crash-Free** š„ Have you ever encountered the dreaded SIGPIPE error that crashes your server program? We know the struggle! In this blog post, we'll dive into the common issues surrounding SIGPIPEs and
What"s the difference between __PRETTY_FUNCTION__, __FUNCTION__, __func__?
# What's the difference between __PRETTY_FUNCTION__, __FUNCTION__, __func__? If you are a beginner in C++ programming, chances are you have come across the terms `__PRETTY_FUNCTION__`, `__FUNCTION__`, and `__func__` while reading code or researching onlin
how to use #ifdef with an OR condition?
# How to Use #ifdef with an OR Condition? š¤ Having trouble setting an OR condition in the `#ifdef` directive? No worries, we've got you covered! In this blog post, we'll help you understand the proper way to use the `#ifdef` directive with an OR conditio
How can I autoformat/indent C code in vim?
# Autoformatting/Indenting C code in Vim š So, you've come across some messy C code and you want to bring it back to its pristine, well-indented glory in Vim? Fear not! In this blog post, we'll explore some common issues related to autoformatting C code
Is bool a native C type?
š **Title: Bool in C: Unraveling the Mystery** š· Image: [Illustration of a C code snippet with a question mark](image-link) Are you puzzled by the presence of `bool` in the Linux kernel code? You might be wondering, isn't `bool` a C++ type? š¤ Don't wo
How to achieve function overloading in C?
# Achieving Function Overloading in C: A Guide to Bridging the Gap š¢ Calling all C programmers! Are you tired of not being able to achieve function overloading in C? Do you find yourself longing for the simplicity and flexibility of this powerful feature








