package posix-getopt

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

Install

Dune Dependency

Authors

Maintainers

Sources

v2.0.2.tar.gz
md5=03d384b20e46da8598a69942ef92b53e
sha512=6f5fa0fd5f3f0b845c2c9cd46a53e518dc5187f1ea7450fc04bbdc4c7b6fbcc427253e60847cc14f5bff895622e18aea404fbd8e14d4b50f52a7c0e682621ac8

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.