Re: K&R Exercise 6-2



Richard Heathfield wrote:
August Karlstrom said:
So a library which exports e.g. the identifiers string_prepend and
string_append are not really C90 compliant?

Right, for two reasons:

(1) the names invade implementation namespace;
(2) the names are a touch on the long side.

In practice, (1) is often ignored, and (2) is practically always ignored. But strictly speaking, yes, you are correct.

Of the two reasons, (1) is probably the more important. Whilst it is certainly possible that some people are still using 6-sig-char linkers nowadays, it isn't terribly likely that terribly many people are. Even twenty years ago (and probably more), people were ignoring the 6-character thing, and it doesn't seem to have caused any major software crises.

Thanks for the clarification.


August
.



Relevant Pages

  • Re: Use of do...while(0) in ASSERT macro
    ... Richard Heathfield writes: ... In practice, there are two reasons why I don't do ... > code), Murphy's Law states quite clearly that, if I use a single-statement ...
    (comp.lang.c)
  • Re: Question on device driver ? [OT]
    ... Richard Heathfield wrote: ... if we're talking RFCs, Chuck's sig is in excess of four lines; ... the more they pay. ... practice or experience. ...
    (comp.lang.c)
  • Re: c source
    ... Richard Heathfield wrote: ... someone else has written to improve, also i want to practice to ... where can i download them? ... -- Francis Crick, co-discover of DNA ...
    (comp.lang.c)
  • Re: Access by string name
    ... Richard Heathfield wrote: ... In practice, you can tie them together in a struct and then store ... (Actually, no matter how you do this, someone will come up with a way ...
    (comp.lang.c)
  • Re: The null directive (6.10.7 of n1124)
    ... Richard Heathfield writes: ... that fell out of the grammar and was too much trouble to disallow? ... "The existing practice of using empty # lines for spacing is ... with a gadzillion #preprocessor directives, ...
    (comp.std.c)