home *** CD-ROM | disk | FTP | other *** search
- /**** SAMPLE.C C Code ****/
-
- #include "nandef.h" /* Clipper header files */
- #include "extend.h"
- #include "extor.h"
-
- /* C Code to demonstrate Clipper's Extend System */
-
- CLIPPER Addit()
- /*--------------------------------------------------------*/
- { /* test if the params are all there and are integers */
-
- if(PCOUNT == 2 && ISNUM(1) && ISNUM(2))
- _retni(_parni(1) + _parni(2)); /* return the sum */
- else
- _retni(0); /* bombed out..failed..flunked..dud */
- }
- /** EOF Addit **/
-