Asm C/c++ Disassembly Gdb Disassembly C code for fun – Part 9: arrays Arrays are a list of fixed number of elements of the same type stored into a continuous block of memory. String are a type of array with a fixed number of char with
Mock Python Unit tests Mocking objects in unit tests Unit testing is important to ensure the stability and the correctness of the code throughout all lifespan of the project. However, testing some code requires a connection to external services (like SMTP, web,
Asm C/c++ Disassembly Hello world X86-64 Disassembly C code for fun – Part 8: strings Following the last post about the buffer overflow protection, today we finally talk about strings.
Algorithm C/c++ Complexity Detect if a number is power of 2 Easy post today: simple method to detect if a number is a power of 2 in O(1) complexity.
32-bit 64-bit C/c++ Disassembly Gcc Gdb Cross-compile 64-bit code on 32-bit machine Now that I have a spare machine where I can do all my experiments, I can start again to write posts about Disassembly C code for fun but, wait, my current hardware is