{"id":19141833,"url":"https://github.com/nyuuuukie/asm-library","last_synced_at":"2026-07-16T23:34:17.070Z","repository":{"id":129334088,"uuid":"329082394","full_name":"nyuuuukie/asm-library","owner":"nyuuuukie","description":"Reproduction of some C standard functions used for working with C-style strings and lists in assembler (nasm)","archived":false,"fork":false,"pushed_at":"2021-06-03T13:04:25.000Z","size":45,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-21T22:39:21.053Z","etag":null,"topics":["42ecole","42projects","libasm"],"latest_commit_sha":null,"homepage":"","language":"Assembly","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/nyuuuukie.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,"governance":null}},"created_at":"2021-01-12T18:53:24.000Z","updated_at":"2022-09-07T17:13:43.000Z","dependencies_parsed_at":"2023-03-13T11:24:18.017Z","dependency_job_id":null,"html_url":"https://github.com/nyuuuukie/asm-library","commit_stats":null,"previous_names":["nyuuuukie/asm-library"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nyuuuukie/asm-library","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nyuuuukie%2Fasm-library","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nyuuuukie%2Fasm-library/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nyuuuukie%2Fasm-library/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nyuuuukie%2Fasm-library/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nyuuuukie","download_url":"https://codeload.github.com/nyuuuukie/asm-library/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nyuuuukie%2Fasm-library/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35560452,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-16T02:00:06.687Z","response_time":83,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["42ecole","42projects","libasm"],"created_at":"2024-11-09T07:24:53.480Z","updated_at":"2026-07-16T23:34:17.044Z","avatar_url":"https://github.com/nyuuuukie.png","language":"Assembly","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Asm-library\n### _Reproduction of some C standard functions used for working with C-style strings and lists in assembler (NASM)_\n\n## Description:\nBasic part of the lib contains the following functions: \u003c/br\u003e\n\n```c \nsize_t  ft_strlen(const char *str);\n\nchar   *ft_strdup(const char *str);\n\nchar   *ft_strcpy(char *dst, const char *src);\n\nssize_t ft_read(int fd, void *buffer, size_t length);\n\nint     ft_strcmp(const char *str1, const char *str2);\n\nssize_t ft_write(int fd, const void *buffer, size_t length);\n\n```\n\nAdditional part uses the following struct:\n\n```c\ntypedef struct        s_list\n{\n    void              *data;\n    struct s_list     *next;\n}                     t_list;\n```\n* Field `data` can store any type \u003c/br\u003e\n* Field `next` refers to the next element of the list \u003c/br\u003e\n\nIt also contain these functions to work with the list:\n\n```c\nint   ft_atoi_base(char *str, char *base);\n\nint   ft_list_size(t_list *begin_list);\n\nvoid  ft_list_push_front(t_list **begin_list, void *data);\n\nvoid  ft_list_sort(t_list **begin_list, int (*cmp)());\n\nvoid  ft_list_remove_if(t_list **begin_list, void *data, int (*cmp)(), void (*free_ctl)(void *));\n\n```\n\n## Creation:\nUse **`make`** or **`make -C \u003cpath_to_libdir\u003e`** to compile basic part of a lib. \u003c/br\u003e\nIf you want create library with additional part, you should use **`make bonus`**\n\n## Using examles:\nCompiling with .c/.o/.s files: \u003c/br\u003e\n* `gcc test.c -L \u003cpath_to_lib\u003e -lasm -I \u003cpath_to_lib\u003e`\u003c/br\u003e\n\n* `gcc test.o \u003cpath_to_lib\u003e/libasm.a` \u003c/br\u003e\n\n## Run test:\nUse **`make run`** or **`make runb`** to compile library with test main function. \u003c/br\u003e\nTo run test type **`./a.out`** and pass them 2 or 3 args:\n* `./a.out \"hello\"` will test all basic functions except strcmp \u003c/br\u003e\n\n* `./a.out \"hello\" \"world\"` will test all basic functions including strcmp\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnyuuuukie%2Fasm-library","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnyuuuukie%2Fasm-library","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnyuuuukie%2Fasm-library/lists"}