{"id":15497320,"url":"https://github.com/jwerle/strsplit.c","last_synced_at":"2025-04-22T22:28:51.129Z","repository":{"id":11252046,"uuid":"13651432","full_name":"jwerle/strsplit.c","owner":"jwerle","description":"Split a string into a char array by a given delimiter","archived":false,"fork":false,"pushed_at":"2016-04-01T17:49:22.000Z","size":16,"stargazers_count":14,"open_issues_count":0,"forks_count":7,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-29T19:34:27.466Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/jwerle.png","metadata":{"files":{"readme":"README.md","changelog":"History.md","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":"2013-10-17T14:31:37.000Z","updated_at":"2025-03-06T22:51:58.000Z","dependencies_parsed_at":"2022-09-16T03:51:04.818Z","dependency_job_id":null,"html_url":"https://github.com/jwerle/strsplit.c","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jwerle%2Fstrsplit.c","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jwerle%2Fstrsplit.c/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jwerle%2Fstrsplit.c/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jwerle%2Fstrsplit.c/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jwerle","download_url":"https://codeload.github.com/jwerle/strsplit.c/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250333621,"owners_count":21413423,"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-02T08:32:50.893Z","updated_at":"2025-04-22T22:28:51.099Z","avatar_url":"https://github.com/jwerle.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"strsplit.c\n==========\n\nSplit a string into a char array by a given delimiter\n\n## install\n\n```sh\n$ clib install jwerle/strsplit.c\n```\n\n## usage\n\n```c\nsize_t size = strsplit(char *str, char **parts, char *delimiter);\n```\n\n## example\n\n```c\n\n#include \"strsplit.h\"\n\nint\nmain (void) {\n\tchar str[] = \"hello\\nworld\";\n\tchar *parts[2];\n\tsize_t size = strsplit(str, parts, \"\\n\");\n\tint i = 0;\n\tfor (; i \u003c size; ++i) {\n\t\tprintf(\"%s\\n\", parts[i]);\n\t}\n\n\treturn 0;\n}\n```\n\n## license\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjwerle%2Fstrsplit.c","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjwerle%2Fstrsplit.c","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjwerle%2Fstrsplit.c/lists"}