Debugging expr with ldd
December 31, 2020
TOC
- 1. expr failing to perform simple multiplication
- 2. Investigating expr
- 3. Looking at the libraries used by expr
A random blog by a random human
December 31, 2020
November 1, 2020
October 25, 2020
I was randomly browsing r/CarletonU community on Reddit since it’s one of the schools I may attend next Fall. A particular post interested me due to the title: For anyone in Computer Science. As a recent graduate in Computer Science (undergrad), this post caught my attention. This blog post is inspired by my response on reddit about double pointers.
October 15, 2020
It came to my attention from an embedded course on udemy the existence of scanset in scanf
October 4, 2020
Recently, I’ve been learning embedded programming from udemy and there was a section dedicated const
.
The section was interesting because despite programming in C a lot during my duration of my undergrad, I have never taken a look at const
in much detail. I am sure there is more to const
than
what the course provides but I still learned a lot from this section itself.
September 25, 2020
Today I learned something new that should have been obvious but it was something I never took time to think about. In Linux, we have three standard streams: stdin
, stdout
, and stderr
. If you are familiar with programming in C, you should know that stdin
is the input channel that handles data from an input device such as your keyboard. scanf
is a function that scans input according to format
(definition from SCANF(3) - Linux Programmer's Manual
). But how does scanf
actually scan the input?