package posix-getopt

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

Install

Dune Dependency

Authors

Maintainers

Sources

v2.0.0.tar.gz
md5=2c186aa5161b72208a870d5710fb6208
sha512=d583c3d386865eab7575fc4f1976c17294bad2ee5037327cb5c3075965788170e652b7b9b9f660ef25f71558553fbcc47734b971e3c9f41627cc573d75d2fb54

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.