Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!mailrus!iuvax!bsu-cs!rmfowler From: rmfowler@bsu-cs.bsu.edu (Rex M. Fowler) Newsgroups: comp.lang.c Subject: assigning functions to different names Keywords: functions argv[0] Message-ID: <10573@bsu-cs.bsu.edu> Date: 15 Jan 90 00:18:09 GMT Organization: CS Dept, Ball St U, Muncie, IN, USA Lines: 25 I'm trying to write a program that will perform an action on it's argument depending on which name the program was invoked as. for example program b is ln'd to program a i want to do if (argv[0] == "a") { functionname() = function1(); } else if (argv[0] == "b") { functionname() = function2(); } functionname(argv[1]); Any help will be greatly appreciated. please email. thanks -- Rex Fowler UUCP : !{iuvax,pur-ee}!bsu-cs!rmfowler Ball State University ARPA : rmfowler@bsu-cs.bsu.edu Muncie, IN