News for hackers. Stuff that matters.
Re:Where the Printf Rubber Meets the Road (2010) by lelandbatey on Saturday October 04, 2014 @09:33PM (#8411172)
What I mean by mysterious is that the syscall is hidden in the write statement, vs hidden in the printf statement. Also, I wrote the above function (actually a much smaller version) as part of a program that would print a binary tree of any given height[0]. It wasn't meant to be efficient, it was meant to be small, since the total size of the program was 777 bytes (later reduced to 505 bytes).

[0] - http://lelandbatey.com/posts/2014/09/binary-tree-printer/

There are no comments on this comment yet.