Debian Codegraph @

test cases/fortran/10 find library/gzip.f90

raw
1 module gzip
2
3 use iso_c_binding, only: c_char, c_ptr, c_int
4 implicit none
5
6 interface
7 type(c_ptr) function gzopen(path, mode) bind(C)
8 import c_char, c_ptr
9
10 character(kind=c_char), intent(in) :: path(*), mode(*)
11 end function gzopen
12 end interface
13
14 interface
15 integer(c_int) function gzwrite(file, buf, len) bind(C)
16 import c_int, c_ptr, c_char
17
18 type(c_ptr), value, intent(in) :: file
19 character(kind=c_char), intent(in) :: buf
20 integer(c_int), value, intent(in) :: len
21 end function gzwrite
22 end interface
23
24 interface
25 integer(c_int) function gzclose(file) bind(C)
26 import c_int, c_ptr
27
28 type(c_ptr), value, intent(in) :: file
29 end function gzclose
30 end interface
31
32 end module gzip