{"id":24488185,"url":"https://github.com/codiepp/ml-cpp-cstdio","last_synced_at":"2025-03-15T00:14:01.220Z","repository":{"id":117956164,"uuid":"537776600","full_name":"CodiePP/ml-cpp-cstdio","owner":"CodiePP","description":"OCaml embedded cross-platform C++ \u003ccstdio\u003e","archived":false,"fork":false,"pushed_at":"2024-06-22T21:56:09.000Z","size":38,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-07T18:04:58.629Z","etag":null,"topics":["hacktoberfest"],"latest_commit_sha":null,"homepage":"","language":"OCaml","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CodiePP.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"codiepp"}},"created_at":"2022-09-17T10:41:51.000Z","updated_at":"2024-06-22T21:56:12.000Z","dependencies_parsed_at":"2024-02-06T19:30:27.053Z","dependency_job_id":null,"html_url":"https://github.com/CodiePP/ml-cpp-cstdio","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodiePP%2Fml-cpp-cstdio","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodiePP%2Fml-cpp-cstdio/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodiePP%2Fml-cpp-cstdio/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodiePP%2Fml-cpp-cstdio/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CodiePP","download_url":"https://codeload.github.com/CodiePP/ml-cpp-cstdio/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243663583,"owners_count":20327306,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hacktoberfest"],"created_at":"2025-01-21T16:18:47.581Z","updated_at":"2025-03-15T00:14:01.198Z","avatar_url":"https://github.com/CodiePP.png","language":"OCaml","funding_links":["https://github.com/sponsors/codiepp"],"categories":[],"sub_categories":[],"readme":"# ml-cpp-cstdio\nOCaml embedded cross-platform C++ \u0026lt;[cstdio](https://en.cppreference.com/w/cpp/header/cstdio)\u003e\n\n## the interface\n\n```OCaml\n\nmodule File :\nsig\n    (* Buffer.ta represents a chunk of C-bytes *)\n    module Buffer :\n    sig\n      type ta\n      val create : int -\u003e ta\n      val release : ta -\u003e ta\n      val resize : ta -\u003e int -\u003e unit\n      val good : ta -\u003e bool\n      val init : int -\u003e (int -\u003e char) -\u003e ta\n      val to_string : ta -\u003e string\n      val from_string : string -\u003e ta\n      val size : ta -\u003e int\n      val get : ta -\u003e int -\u003e char\n      val set : ta -\u003e int -\u003e char -\u003e unit\n      val copy_sz_pos : ta -\u003e pos1:int -\u003e sz:int -\u003e ta -\u003e pos2:int -\u003e int\n      val copy_string : string -\u003e ta -\u003e int -\u003e unit\n    end\n\n    type file\n    type errinfo = (int * string)\n\n    val to_string : file -\u003e string\n\n    val fopen : string -\u003e string -\u003e (file, errinfo) result\n    val fclose : file -\u003e (unit, errinfo) result\n    val fflush : file -\u003e (unit, errinfo) result\n    val fflush_all : unit -\u003e (unit, errinfo) result\n    val ftell : file -\u003e (int, errinfo) result\n    val fseek : file -\u003e int -\u003e (unit, errinfo) result\n    val fseek_relative : file -\u003e int -\u003e (unit, errinfo) result\n    val fseek_end : file -\u003e int -\u003e (unit, errinfo) result\n    val fread : Buffer.ta -\u003e int -\u003e file -\u003e (int, errinfo) result\n    val fwrite : Buffer.ta -\u003e int -\u003e file -\u003e (int, errinfo) result\n    val fwrite_s : string -\u003e file -\u003e (int, errinfo) result\n    val ferror : file -\u003e errinfo\n    val feof : file -\u003e bool\n\n    val content64k : string -\u003e int -\u003e (Buffer.ta, errinfo) result\n\n    val pp_file : Format.formatter -\u003e file -\u003e unit\n    val pp_err : Format.formatter -\u003e errinfo -\u003e unit\nend\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodiepp%2Fml-cpp-cstdio","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodiepp%2Fml-cpp-cstdio","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodiepp%2Fml-cpp-cstdio/lists"}