[comp.lang.c] assigning functions to different names

rmfowler@bsu-cs.bsu.edu (Rex M. Fowler) (01/15/90)

	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 : <backbones>!{iuvax,pur-ee}!bsu-cs!rmfowler
Ball State University   ARPA : rmfowler@bsu-cs.bsu.edu
Muncie, IN