assigning functions to different names

Rex M. Fowler rmfowler at bsu-cs.bsu.edu
Mon Jan 15 11:18:09 AEST 1990



	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 at bsu-cs.bsu.edu
Muncie, IN



More information about the Comp.lang.c mailing list