{"id":16944407,"url":"https://github.com/jmkim/uh.h","last_synced_at":"2025-03-21T08:20:27.298Z","repository":{"id":82075842,"uuid":"45180022","full_name":"jmkim/uh.h","owner":"jmkim","description":"uh.h","archived":false,"fork":false,"pushed_at":"2015-11-01T18:54:11.000Z","size":136,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-26T05:11:35.890Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jmkim.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-10-29T11:53:01.000Z","updated_at":"2015-10-29T11:56:19.000Z","dependencies_parsed_at":"2023-03-07T22:41:31.821Z","dependency_job_id":null,"html_url":"https://github.com/jmkim/uh.h","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/jmkim%2Fuh.h","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmkim%2Fuh.h/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmkim%2Fuh.h/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmkim%2Fuh.h/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jmkim","download_url":"https://codeload.github.com/jmkim/uh.h/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244759925,"owners_count":20505716,"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-13T21:18:05.734Z","updated_at":"2025-03-21T08:20:27.272Z","avatar_url":"https://github.com/jmkim.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"```bash\n### How to make a static library\ngcc -c src/uh.c     # output will be \"uh.o\", if you not use `-o output_file'.\n\nmkdir lib\nar rc lib/libuh.a uh.o\n# ar options\n# r     add new object to archive; in this case, \"lib/libuh.a\"\n# c     create archive if not exist\nrm uh.o\n\n### How to link a static library\ngcc -L ./lib -luh your_source_file.c\n# gcc options\n# -L [where_the_library_is]\n# -l [name_of_the_library (except prefix \"lib\" and extension)]\n#    example: to link \"libuhfoo.a\": -luhfoo\n#             to link \"libuhbar.a\": -luhbar\n#             to link both        : -luhfoo -luhbar\n\n```\n\n```c\n/*\n  example.c\n  Trim the input string\n\n  Author: Jongmin Kim \u003cjmkim@pukyong.ac.kr\u003e\n  Written on October 29, 2015\n*/\n\n#include \u003cstdio.h\u003e\n#include \"src/uh_fgets.h\"\n#include \"src/uh_trim.h\"\n\nint main(void)\n{\n  printf(\"Enter the string: \");\n  char str[100];\n  uh_fgets(stdin, str, 100);\n  printf(\n    \"Trim the string..\\n\"\n    \"     all        : \\\"%s\\\"\\n\"\n    \"     both       : \\\"%s\\\"\\n\"\n    \"     lead only  : \\\"%s\\\"\\n\"\n    \"     tail only  : \\\"%s\\\"\\n\"\n    , uh_trim_all(str, \" \")\n    , uh_trim_both(str, \" \")\n    , uh_trim_leading(str, \" \")\n    , uh_trim_trailing(str, \" \")\n  );\n\n  return 0;\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjmkim%2Fuh.h","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjmkim%2Fuh.h","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjmkim%2Fuh.h/lists"}