FGSL
Fortran interface for the GNU scientific library
Functions/Subroutines
api/io.finc File Reference

Functions/Subroutines

type(fgsl_file) fgsl_open (path, mode)
 fgsl_open maps the POSIX call fopen() to Fortran
integer(fgsl_int) fgsl_close (fd)
 fgsl_open maps the POSIX call fclose() to Fortran
type(fgsl_file) fgsl_stdin ()
 fgsl_stdin produces a fgsl_file object corresponding to C standard input
type(fgsl_file) fgsl_stdout ()
 fgsl_stdout produces a fgsl_file object corresponding to C standard output
type(fgsl_file) fgsl_stderr ()
 fgsl_stderr produces a fgsl_file object corresponding to C standard error
integer(fgsl_int) fgsl_flush (file)
 fgsl_flush flushes a fgsl_file object
logical fgsl_file_status (file)

Function Documentation

integer(fgsl_int) fgsl_close ( type(fgsl_file),intent(inout)  fd)

fgsl_open maps the POSIX call fclose() to Fortran

Parameters:
fd- on entry: open file object
Returns:
Status.
logical fgsl_file_status ( type(fgsl_file),intent(in)  file)
integer(fgsl_int) fgsl_flush ( type(fgsl_file),intent(in)  file)

fgsl_flush flushes a fgsl_file object

type(fgsl_file) fgsl_open ( character(kind=fgsl_char, len=*),intent(in)  path,
character(kind=fgsl_char, len=*),intent(in)  mode 
)

fgsl_open maps the POSIX call fopen() to Fortran

Parameters:
path- string specifying the path name of the file to be opened
mode- string containing the opening mode
Returns:
object of type fgsl_file which can be used in other I/O calls.
type(fgsl_file) fgsl_stderr ( )

fgsl_stderr produces a fgsl_file object corresponding to C standard error

type(fgsl_file) fgsl_stdin ( )

fgsl_stdin produces a fgsl_file object corresponding to C standard input

type(fgsl_file) fgsl_stdout ( )

fgsl_stdout produces a fgsl_file object corresponding to C standard output

 All Classes Namespaces Files Functions Variables