strncpy()--why is this in unix-wizards?
jbray%bbn-unix at sri-unix.UUCP
jbray%bbn-unix at sri-unix.UUCP
Thu Sep 15 02:39:50 AEST 1983
From: James Bray <jbray at bbn-unix>
I would like to join a discussion of extensions to C if one should start.
Here are some ideas that I have just had lying around in a file:
Needs a "restart" construct to reenter a for loop (as for example when having
slept in it and needing to completely recommence);
Loops of all kinds, and perhaps all scopes, should be nameable. Break,
continue, and the proposed restart could accept these labels as an optional
argument: when used in this way, it would indicate that the desired action be
performed on the given scope, with the default being as for the current usage;
These are a couple of ideas which might help C to become a genuinely goto-less
language. They should reduce or eliminate the need for "goto loop" and
"goto out" which one sees so often in the kernel.
--Jim Bray
More information about the Comp.unix.wizards
mailing list