2 ms·
The linked C source file is an excellent example of ancient C, when it was still more closer to high level assembly: https://www.tuhs.org/cgi-bin/utree.pl?file
by miohtama 2y ago
The linked C source file is an excellent example of ancient C, when it was still more closer to high level assembly:
https://www.tuhs.org/cgi-bin/utree.pl?file=V2/cmd/glob.c https://www.tuhs.org/cgi-bin/utree.pl?file=V2/cmd/glob.c
- tomtomtom777 2y agoAnd when buffer overflows were (attempted to be) avoided by guestimating a large enough buffer size.
- LeFantome 2y agoI assume that you are referring to the liberal use of “goto”. Of course, “if”, “while”, and even “switch” are also used. Quite the mix. Directly calling into system calls (“write”) is interesting.
- kps 2y agoThe modern form of stdio only appear in Seventh Edition Unix.
- quuxplusone 2y agowrite(2) is POSIX. That's not "directly calling into a system call"; it's a normal C API from the POSIX header <unistd.h>.