[Info-vax] Whither VMS?

Bob Eager rde42 at spamcop.net
Wed Oct 7 02:47:21 EDT 2009


On Wed, 07 Oct 2009 06:36:21 +0000, Bob Eager wrote:

> On Wed, 07 Oct 2009 00:43:44 +0000, glen herrmannsfeldt wrote:
> 
>> Bob Eager <rde42 at spamcop.net> wrote:
>> (snip)
>>  
>> < However...section 7.26 of the standard is the interesting one (and I
>> < didn't know this, but the standard happened to be right beside me).
>> It < says that ALL names starting with 'str', 'mem' (for example) are <
>> reserved, no matter what files are included! There are other examples <
>> such as whole function names such as 'cerf'.
>>  
>> < This is obviously just to future-proof programs, and in practice I
>> doubt < that it matters. Compilers would not generally check this; as
>> said < before, it's a library thing.
>> 
>> Many compilers now generate those functions inline, without calling an
>> actual function.  That would only be true for the ones actually
>> implemented, such as strcat and memcpy, but they reserved them all to
>> allow for future additions.
>> 
>> If you try to write your own strcat, it is likely on current compilers
>> never to be called.
> 
> I'd be interested to know which compilers. Can you cite some examples,
> please?

Sorry - I should have said "...and in which that behaviour can't easily 
be turned off".



-- 
Use the BIG mirror service in the UK:
 http://www.mirrorservice.org




More information about the Info-vax mailing list