{"id":18423070,"url":"https://github.com/amarok24/c_snippets","last_synced_at":"2025-04-13T14:44:20.234Z","repository":{"id":80033174,"uuid":"533932133","full_name":"Amarok24/C_snippets","owner":"Amarok24","description":"My snippets in C language, ISO C90/C99.","archived":false,"fork":false,"pushed_at":"2022-10-06T15:14:26.000Z","size":31,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-16T07:41:21.509Z","etag":null,"topics":["c","c90","c99"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Amarok24.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}},"created_at":"2022-09-07T20:32:24.000Z","updated_at":"2023-01-23T14:00:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"874123e5-959f-47e0-9ec7-71dc5da2ebf8","html_url":"https://github.com/Amarok24/C_snippets","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/Amarok24%2FC_snippets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Amarok24%2FC_snippets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Amarok24%2FC_snippets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Amarok24%2FC_snippets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Amarok24","download_url":"https://codeload.github.com/Amarok24/C_snippets/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248732063,"owners_count":21152838,"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":["c","c90","c99"],"created_at":"2024-11-06T04:35:03.816Z","updated_at":"2025-04-13T14:44:20.204Z","avatar_url":"https://github.com/Amarok24.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# c_snippets\nMy C snippet collection. Most of it is old-school code (C89/C90, C99), so it should be fairly well portable to most systems, even old computers.\n\n## Compilation of source code with GCC\n\nIf you run into troubles when compiling, you might want to tell the GNU C Compiler (GCC) what C standard to use for compilation; here is a very basic example:\n\n```sh\ngcc -std=c99 somefile.c -o outputexecutable\n```\n\nIf the math library is used (if you see `#include \u003cmath.h\u003e` somewhere on top of the C source), you have to explicitly tell GCC to link the math library (this has historical reasons which I don't understand). Simply put `-lm` (link math) at the end of the compile line:\n\n```sh\ngcc -std=c99 somefile.c -o outputexecutable -lm\n```\n\nTo reduce file size of the executable use the `-s` flag (remove all symbol table information).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famarok24%2Fc_snippets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famarok24%2Fc_snippets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famarok24%2Fc_snippets/lists"}