#include <bodytrans.h>typedef real (*rproc_body)(Body *, real, int);typedef int (*iproc_body)(Body *, real, int); rproc_body btrtrans(string expr) iproc_body btitrans(string expr)
Both routines return a function pointer, which can then be used to call the desired function. For more details on the allowed expr see bodytrans(1NEMO) .
rproc_body fsum; Body *bp; real t, sum; int i; fsum = btrtrans("x+y"); sum = (*map)(bp,t,i);
20-nov-89 Doc Created PJT 11-sep-90 Manual updated PJT 15-aug-06 prototype definitions finally documented WD/PJT