How Do I Make This Hard to Misuse?
Posted Apr 1, 2008 17:22 UTC (Tue) by
vmole (guest, #111)
In reply to:
How Do I Make This Hard to Misuse? by jzbiciak
Parent article:
How Do I Make This Hard to Misuse?
My guess is that it's even simpler than that: we've got a function that puts a character to stdout, and we need one that puts to an arbitrary FILE *, so we'll add an argument.
Many years ago, I worked on a Data General. The COPY and MOVE commands took, as a first argument, the destination file or directory. This made some sort of sense from an implementation point of view, but, as the TA warned at the time, "Sooner or later *all* of you are going to overwrite a source file." I think we all did.
(
Log in to post comments)