Replace line in text-file using C – I want to change lines which contain the # symbol in a text […]
Month: April 2022
Read ICMP payload from a recvmsg with MSG_ERRQUEUE flag
Read ICMP payload from a recvmsg with MSG_ERRQUEUE flag – I’m using BSD sockets to build an advanced traceroute program […]
Access a 1D array as a 2D array in C++
Access a 1D array as a 2D array in C++ – This has bothered me for a while. A lot […]
How does copy-on-write work in fork()?
How does copy-on-write work in fork()? – I want to know how copy-on-write happens in fork(). Assuming we have a […]
strtok and memory leaks
strtok and memory leaks – I wrote a simple url parser using strtok(). here’s the code #include <stdio.h> #include <stdlib.h> […]
there
there –
Reading / writing from using I2C on Linux
Reading / writing from using I2C on Linux – I’m trying to read/write to a FM24CL64-GTR FRAM chip that is […]
Biggest and smallest of four integers (No arrays, no functions, fewest ‘if’ statements)
Biggest and smallest of four integers (No arrays, no functions, fewest ‘if’ statements) – You see, I’ve self-taught myself C++ […]
Best practice for compute the function return value
Best practice for compute the function return value – Often I built functions, in C, that checks some parameters and […]
Using sizeof() on malloc’d memory [duplicate]
Using sizeof() on malloc’d memory [duplicate] – This question already has answers here: Closed 12 years ago. Possible Duplicate: newbie […]