f2c CGI library

I have used the fortran-to-C translator bundled with my RedHat Linux. You write fortran 77 code, you pass it thru f2c, you compile the generated C code with gcc, you link with my library, et voilą, you have a CGI "80-cols".

Installing and using the library.

Available functions

This functions works with <form method=GET... CGI call. Every func take two parameters who are the name of the field and the variable for hold the value of this form's field.
The return value is 0 for failure and 1 for success. So, you can test for bad user input or "your CGI called by alien web-pages" condition.
Here is a code sample:

      INTEGER             RETVALUE, GET_DOUBLE
      DOUBLE PRECISION    FOOBAR

      RETVALUE = GET_DOUBLE('PARAM', FOOBAR)
      IF (RETVALUE .eq. 1) then
C        ---- now, compute some useless number
      ELSE
C        ---- damned, a non-numerik bad input
      ENDIF


 [HOME]   [oulala@chez.com]