Clac -- 'The programmer's manual' Adding new functions to the code of Clac is quite easy. All you have to do is: A. To add a single parameter function: 1. Add the name of the function to the string in the 'par' structure in the appropriate place. 2. Add one to the value of 'par.mfunc' variable in the same structure. 3. Add one case to the end of the switch structure in the 'eval_func()' function and make the desired function. Function will get it's parameter from the 'value' variable and returns the result in the same variable. B. To add a multi parameter function: 1. Add the name of the function to the end of the string in the 'par' structure. 2. Add one case to the end of the switch structure in the 'eval_mfunc()' function and make the desired function. Parameters for the function are in the variables 'val.buf[a]' - 'val.buf[b]' and their count in the 'params' variable. 3. Result of the function should be returned in the 'value' variable. Conditions of distribution (to be expired at the end of the 20th century ;-): 1. No charge is taken from the distribution. 2. Modified version(s) should have the exact description about the modifications made, their author and a date. Also one copy of the modified source should be sent to the E-mail address: t150315@cc.tut.fi. 3. All the now included files (clac.h clac.c and clac.txt) should be included into the distributed package. 4. Author isn't responsible for any damages / losses of money, job etc. resulting from the proper or improper use of this program (ie. the standard disclaimer). As it is, this program might still contain numerous bugs. Eero Tamminen (E-mail (1994-?): t150315@cc.tut.fi)