{"id":18075029,"url":"https://github.com/lnsp/csine","last_synced_at":"2025-07-02T13:40:35.631Z","repository":{"id":32993300,"uuid":"36622131","full_name":"lnsp/csine","owner":"lnsp","description":"Deprecated! No further development.","archived":false,"fork":false,"pushed_at":"2016-03-25T19:23:39.000Z","size":1368,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-05T19:19:14.921Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lnsp.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}},"created_at":"2015-05-31T21:06:13.000Z","updated_at":"2016-03-25T19:23:14.000Z","dependencies_parsed_at":"2022-09-04T01:03:31.265Z","dependency_job_id":null,"html_url":"https://github.com/lnsp/csine","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/lnsp/csine","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lnsp%2Fcsine","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lnsp%2Fcsine/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lnsp%2Fcsine/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lnsp%2Fcsine/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lnsp","download_url":"https://codeload.github.com/lnsp/csine/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lnsp%2Fcsine/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263149308,"owners_count":23421351,"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":[],"created_at":"2024-10-31T10:44:13.639Z","updated_at":"2025-07-02T13:40:35.603Z","avatar_url":"https://github.com/lnsp.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CSine [![Build status](https://travis-ci.org/mooxmirror/csine.svg)](https://travis-ci.org/mooxmirror/csine)\nHigh-level data structure and algorithm library\n\n--------------------------------------------------------------------------------\n\n## Features\n- Pragmatic APIs for common data structures\n- Ready-for-production algorithms for manipulating data\n- State of the art code quality and readability\n\n## Build \u0026 Install\n- Download the source code from the [Releases](https://github.com/Mooxmirror/csine/releases) page\n- Run `./configure \u0026\u0026 make \u0026\u0026 make test`\n- Use the generated `libcsine.a` library\n\n## API Documentation\n### Item\nHeader: `item.h`\n\nfunction | arguments | description\n-------- | --------- | -------------------------------------------\n`item`   | `Value`   | Creates a lightweight wrapper for the value\n`value`  | `Item`    | Returns the wrapped value\n\n### Queue\nHeader: `queue.h`\n\nfunction    | arguments     | description\n----------- | ------------- | -----------------------------------------------\n`queue`     | `n/a`         | Allocates memory for a new queue structure\n`-\u003edestroy` | `Queue`       | Destroys the queue structure, deleting all data\n`-\u003eappend`  | `Queue, Item` | Appends a new item to the queue\n`-\u003eshift`   | `Queue`       | Removes the next item and returns it\n`-\u003enext`    | `Queue`       | Returns the next item\n`-\u003eempty`   | `Queue`       | Checks and returns if the queue is empty\n`-\u003esize`    | `Queue`       | Returns the size of the queue\n\n### Stacks\nHeader: `stack.h`\n\nfunction    | arguments     | description\n----------- | ------------- | -----------------------------------------------\n`stack`     | `n/a`         | Allocates memory for a new stack structure\n`-\u003edestroy` | `Stack`       | Destroys the stack structure, deleting all data\n`-\u003epush`    | `Stack, Item` | Pushes the value on the stack\n`-\u003epop`     | `Stack`       | Removes the top item and returns its value\n`-\u003eempty`   | `Stack`       | Checks and returns if the stack is empty\n`-\u003esize`    | `Stack`       | Calculates the size of the stack\n\n### Vectors (dynamic sized arrays)\nHeader: `vector.h`\n\nfunction    | arguments       | description\n----------- | --------------- | ---------------------------------------------------------\n`vector`    | `n/a`           | Allocates memory for a new vector structure\n`-\u003edestroy` | `Vector`        | Destroys the vector structure, deleting all data\n`-\u003eadd`     | `Vector, Item`  | Adds a new item at the end of the vector\n`-\u003eremove`  | `Vector, Index` | Removes the item at the specified position and returns it\n`-\u003eget`     | `Vector, Index` | Returns the item at the specified position\n`-\u003eempty`   | `Vector`        | Checks and returns if the vector is empty\n`-\u003esize`    | `Vector`        | Returns the size of the vector\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flnsp%2Fcsine","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flnsp%2Fcsine","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flnsp%2Fcsine/lists"}