Prepending _ in C external names necessary?

spw2562 at ritcv.UUCP spw2562 at ritcv.UUCP
Wed Dec 11 05:14:51 AEST 1985


In article <13697 at rochester.UUCP> ken at rochester.UUCP (Ipse dixit) writes:
>Ah, but all the assembler symbols like r6 are short. If ...
>-- 
>UUCP: ..!{allegra,decvax,seismo}!rochester!ken ARPA: ken at rochester.arpa
You're considering strictly assembler symbols.  I was refering also to
global names from libraries, et al, that are currently defined by (in?)
the assembler.  For example, say assembler ZZZ has 4 characters significance.
What will differentiate(sp?) a call to 'exit' from a call to 'exit_'?
'exit' and '_exit' are easy to differentiate.  I think that pre-pending
is much less likely to fail than appending.
But don't take that as a guarantee.. 8-)

==============================================================================
        Steve Wall @ Rochester Institute of Technology
        USnail: 6675 Crosby Rd, Lockport, NY 14094, USA
        Usenet: ..!rochester!ritcv!spw2562 (Fishhook)   Unix 4.2 BSD
        BITNET: SPW2562 at RITVAXC (Snoopy)                VAX/VMS 4.2
        Voice:  Yell "Hey Steve!"

    Disclaimer:  What I just said may or may not have anything to do
                 with what I was actually thinking...



More information about the Comp.unix.wizards mailing list