package posix-getopt

  1. Overview
  2. Docs
Bindings for posix getopt/getopt_long

Install

Dune Dependency

Authors

Maintainers

Sources

v2.0.1.tar.gz
md5=7bb4d95f4eaa43ebaf0a62817bf95006
sha512=872ec65363561596c6f0c97ea5bb909bdf375d96502491ec428da71cefb3c43d821a0969ecd453db9b6525e22cef16378b5b069b492141ae18e82efb22d2f724

doc/src/posix-getopt.types/posix_getopt_types.ml.html

Source file posix_getopt_types.ml

1
2
3
4
5
6
7
8
9
10
11
12
module Def (S : Cstubs.Types.TYPE) = struct
  module Option = struct
    type t = unit

    let t = S.structure "option"
    let name = S.field t "name" S.string
    let has_arg = S.field t "has_arg" S.int
    let flag = S.field t "flag" (S.ptr S.int)
    let _val = S.field t "val" S.int
    let () = S.seal t
  end
end
OCaml

Innovation. Community. Security.