Re: K&R Exercise 6-2
- From: August Karlstrom <fusionfile@xxxxxxxxx>
- Date: Sat, 30 Aug 2008 14:06:22 +0200
Harald van Dijk wrote:
On Fri, 29 Aug 2008 16:51:56 +0200, August Karlstrom wrote:Richard Heathfield wrote:
[...]
In C90, an implementation must be able to distinguish between externalSo a library which exports e.g. the identifiers string_prepend and
identifiers that are unique in the first 6 characters (without regard
to case!). A program such as the one required in Exercise 6-2 could be
useful for diagnosing source code that ignores this limit (as I suspect
a vast amount of source code does).
string_append are not really C90 compliant?
Correct. However, they are already not C90 compliant -- and not C99 compliant either -- for another reason: external identifiers starting with str and followed by a lowercase letter are reserved for the implementation.
Annoying. Is there a way to make a compiler like GCC emit a warning in this case?
August
.
- References:
- K&R Exercise 6-2
- From: mdh
- Re: K&R Exercise 6-2
- From: August Karlstrom
- K&R Exercise 6-2
- Prev by Date: Re: Problems With Global Variables (memory allocations)
- Next by Date: Re: K&R Exercise 6-2
- Previous by thread: Re: K&R Exercise 6-2
- Next by thread: Re: K&R Exercise 6-2
- Index(es):
Relevant Pages
|