Blog

Page 253 of my articles, tutorials, and thoughts

Latest Articles

Cover Image for Removing trailing newline character from fgets() input
c#gccnewlinestring

Removing trailing newline character from fgets() input

Published on September 2, 2023

## Removing trailing newline character from fgets() input šŸ“ Hey there! Are you struggling with removing that pesky trailing newline character from fgets() input? Don't worry, you're not alone. Many programmers face this issue while getting user input usi

Cover Image for Why use double indirection? or Why use pointers to pointers?
c#

Why use double indirection? or Why use pointers to pointers?

Published on September 2, 2023

# Double Indirection: Unraveling the Mystery of Pointers to Pointers šŸŽÆ Are you confused about the concept of double indirection or pointers to pointers? šŸ¤” Don't worry, you're not alone! Many developers find this topic challenging, but fear not – we're h

Cover Image for Core dumped, but core file is not in the current directory?
c#

Core dumped, but core file is not in the current directory?

Published on September 2, 2023

šŸ’” **Title:** Where did my core file go? Understanding the mystery of "core dumped" without a core file šŸ“ **Introduction:** Hey there! šŸ‘‹ Have you ever run into the issue where your C program throws a "core dumped" error but there's no sign of the core

Cover Image for Detecting superfluous #includes in C/C++
c#dependenciesinclude

Detecting superfluous #includes in C/C++

Published on September 2, 2023

šŸ“ Detecting Superfluous #Includes in C/C++: A Guide to Increasing Compile Time Efficiency šŸš€ Do you ever feel like the headers section of your C/C++ file keeps growing but never shrinks? šŸ“¦ Throughout the life of a source file, classes may move and be re

Cover Image for Fast ceiling of an integer division in C / C++
algorithmc#math

Fast ceiling of an integer division in C / C++

Published on September 2, 2023

# Fast Ceiling of an Integer Division in C/C++: Solving the Dilemma šŸš€ So, you've found yourself in the pursuit of finding a way to quickly calculate the ceiling of an integer division in C/C++. You know that by default, C and C++ round down to the neares

Cover Image for Passing variable number of arguments around
c#variadic-functions

Passing variable number of arguments around

Published on September 2, 2023

# Passing Variable Number of Arguments: A Guide to Solving Common Issues Have you ever encountered a situation where you need to pass a variable number of arguments around in your code? šŸ¤” It can be a bit tricky, especially when it comes to calling anothe

Cover Image for Stack smashing detected
c#exception

Stack smashing detected

Published on September 2, 2023

# Stack Smashing Detected: The Hidden Enemy šŸ•µļøā€ā™‚ļø Have you ever encountered the dreaded message "Stack Smashing Detected" while executing an application? 😱 Don't worry, you're not alone! This error message can be quite puzzling, but fear not, for we are

Cover Image for What is the difference between char * const and const char *?
c#

What is the difference between char * const and const char *?

Published on September 2, 2023

šŸ“ **Blog Post: Understanding the Difference Between `char * const` and `const char *`** šŸ‘‹ Hey tech enthusiasts! Welcome back to my blog. Today, let's talk about a common source of confusion in C and C++ programming - the difference between `char * const

Cover Image for How do I use valgrind to find memory leaks?
c#

How do I use valgrind to find memory leaks?

Published on September 2, 2023

šŸ” **How do I use valgrind to find memory leaks?** Hey there, tech enthusiasts! šŸ‘‹ Today, let's dive into the fascinating world of memory leaks and how we can use the powerful tool, valgrind, to hunt them down. šŸ’Ŗ So, you've got your program, let's call

Cover Image for C default arguments
argumentsc#default-parameters

C default arguments

Published on September 2, 2023

šŸ’»šŸ“ Hey techies! Today I'm gonna talk about something that can make your life easier when coding in C – default arguments! šŸŒŸšŸ“ So you've got a function in C and you're wondering if there's a way to specify default arguments? Well, I'm here to tell you t