Mercurial > hg > octave-nkf
comparison src/toplev.cc @ 3686:9507d6de9bbd
[project @ 2000-06-29 16:30:44 by jwe]
author | jwe |
---|---|
date | Thu, 29 Jun 2000 16:30:45 +0000 |
parents | 26662775f4e9 |
children | b7d997d593d9 |
comparison
equal
deleted
inserted
replaced
3685:9d8306640373 | 3686:9507d6de9bbd |
---|---|
548 @deftypefn {Built-in Function} {} atexit (@var{fcn})\n\ | 548 @deftypefn {Built-in Function} {} atexit (@var{fcn})\n\ |
549 Register a function to be called when Octave exits. For example,\n\ | 549 Register a function to be called when Octave exits. For example,\n\ |
550 \n\ | 550 \n\ |
551 @example\n\ | 551 @example\n\ |
552 @group\n\ | 552 @group\n\ |
553 function print_flops_at_exit ()\n\ | 553 function print_fortune ()\n\ |
554 printf (\"\\n%s\\n\", system (\"fortune\"));\n\ | 554 printf (\"\\n%s\\n\", system (\"fortune\"));\n\ |
555 fflush (stdout);\n\ | 555 fflush (stdout);\n\ |
556 endfunction\n\ | 556 endfunction\n\ |
557 atexit (\"print_flops_at_exit\");\n\ | 557 atexit (\"print_fortune\");\n\ |
558 @end group\n\ | 558 @end group\n\ |
559 @end example\n\ | 559 @end example\n\ |
560 \n\ | 560 \n\ |
561 @noindent\n\ | 561 @noindent\n\ |
562 will print a message when Octave exits.\n\ | 562 will print a message when Octave exits.\n\ |