[Fix] XXXXXX in an sprintf format argument of “/tmp/%s-XXXXXX

Recently, when while coding in C language, I came across and unexpected line of code in the sprintf format argument of “/tmp/%s-XXXXXX”. Here is the snippet of the code which I got: I would like to share the steps that helped me understand What does the XXXXXX in an sprintf format argument of “/tmp/%s-XXXXXX”. Why …

Read More

[Fix] Strange uses of movzx by Clang and GCC

While coding in C language, I recently stumbled upon some movzx uses by both Clang and GCC compilers, which was very unexpected to me. Here is the sample of code I tried with GCC 12: When i tried to use the code with clang i got an even more different and confusing output I would like to …

Read More