Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!hplabs!hp-ses!hpcc01!hpcmfs!quan From: quan@hpcmfs.CORP.HP.COM (Suu Quan hplshq ) Newsgroups: comp.unix.questions Subject: Same subroutine, different names in C ? Message-ID: <13640001@hpcmfs.CORP.HP.COM> Date: 15 Feb 90 19:27:57 GMT Organization: HP Corporate Manufacturing Factory Systems, Palo Alto, CA Lines: 20 C or Ansi-C question In assembly language, you can assign several symbols the same entry point. The effect is that you can have the same subroutine take several external names. How do you do that in C? In other words, I want to create a library xxx.a that contains a subroutine s(parm1, parm2). Any one using it can use it as s(parm1,parm2) or __sss(parm1,parm2) PS : I don't want to tell the user to use tricks like - #define s _sss - #include and my-include will have the necessary pointers to do the job.