/*Translated by FOR_C, v3.4.2 (-), on 07/09/115 at 08:33:18 */ /*FOR_C Options SET: ftn=u io=c no=p op=aimnv pf=,p_sprpl s=dbov str=l x=f - prototypes */ #include #include "fcrt.h" #include #include #include "p_sprpl.h" /* program DRSPRPL *>> 1996-07-12 DRDPRPL1 Krogh Special code for C conversion. *>> 1994-10-19 DRSPRPL *>> 1989-04-26 DRSPRPL *--S replaces "?": DR?PRPL, ?PRPL * Demo driver for SPRPL. * ------------------------------------------------------------------ */ int main( ) { char image[37]; long int i; float x, y; /* ------------------------------------------------------------------ */ printf(" X Y Y\n"); for (i = 1; i <= 21; i++) { x = (float)( i - 11 )/10.0e0; y = 2.0e0*x*x - 1.0e0; sprpl( y, '*', (byte*)image, 36, -1.0e0, 1.0e0, TRUE ); printf(" %10.1f%8.2f %36.36s\n", x, y, image); } /* print '(2x,f10.1,f8.2,1x,a)', X,Y,IMAGE */ exit(0); } /* end of function */