package posix-getopt
Bindings for posix getopt/getopt_long
Install
Dune Dependency
Authors
Maintainers
Sources
v2.2.0.tar.gz
md5=e7bfad548f0f7998c74ad5963fdd67fd
sha512=a0fae5a98b9ab63d5273d357292a74ac69c694bdd672b0cbd62b5beb5847e63c17fb0de0a1fb9f36b7bc9f10f7b990298ee63853d8399b9b8a9005c1c7b37ba3
doc/src/posix-getopt.stubs/posix_getopt_stubs.ml.html
Source file posix_getopt_stubs.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
open Ctypes module Def (F : Cstubs.FOREIGN) = struct open F module Types = Posix_getopt_types.Def (Posix_getopt_generated_types) include Types let const_string_ptr = typedef (ptr string) "char * const *" let getopt = foreign "getopt" (int @-> const_string_ptr @-> string @-> returning int) let has_getopt_long = foreign "has_getopt_long" (void @-> returning bool) let getopt_long = foreign "getopt_long" (int @-> const_string_ptr @-> string @-> ptr Option.t @-> ptr int @-> returning int) let has_getopt_long_only = foreign "has_getopt_long_only" (void @-> returning bool) let getopt_long_only = foreign "getopt_long_only" (int @-> const_string_ptr @-> string @-> ptr Option.t @-> ptr int @-> returning int) let getoptarg = foreign "getoptarg" (void @-> returning (ptr char)) let getoptind = foreign "getoptind" (void @-> returning (ptr int)) let getopterr = foreign "getopterr" (void @-> returning (ptr int)) let getoptopt = foreign "getoptopt" (void @-> returning (ptr char)) let getoptreset = foreign "getoptreset" (void @-> returning (ptr int)) let strlen = foreign "strlen" (ptr char @-> returning int) end
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>