Mail Archives: djgpp-workers/1997/10/30/08:14:44
On Thu, 30 Oct 1997, Ian Miller wrote:
> Avoid polluting the ANSI and POSIX namespaces.
> Example of bad practice?
One example is defining external funcions whose names aren't mentioned in
ANSI/POSIX standards, and which don't begin with an underscore, like so:
int my_fancy_function ();
Another example is calling non-POSIX functions whose names don't begin
with an underscore, from POSIX/ANSI functions. For example, `stat' should
NOT call `fnsplit'. (In ANSI functions, avoid non-ANSI functions as
well: `fopen' should NOT call `stat'.)
- Raw text -