package posix-getopt

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

Install

dune-project
 Dependency

Authors

Maintainers

Sources

v4.0.1.tar.gz
md5=464f431a8517dba4295286dd61f3ff2c
sha512=36d4c64987848fc06a4296c2141d250d95db0092b2d9d4d95f301f5eaada9a3df8ae9703fc8f2407596f6fb474a69863abd5e3d2c08636eb2c0dd67477d316e8

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