1 #include "gromacs/utility/fatalerror.h"
3 void my_func(char *msg
)
5 fprintf(stderr
,"Welcome to my_func\n%s\n",msg
);
9 int main(int argc
,char *argv
[])
15 /* set_gmx_error_handler(my_func);*/
18 gmx_fatal(FARGS
,"Expected an integer argument to %s",argv
[0]);
19 choice
= strtol(argv
[1], &end
, 10);
21 gmx_fatal(FARGS
,"Expected an integer argument to %s",argv
[0]);
26 gmx_error("pme","oooo");
29 gmx_fatal(FARGS
,"Passing string %s to you %f %d %x","lll",8.3,34,34);
35 range_check(choice
,1,3);