{"id":18123152,"url":"https://github.com/gemartin99/ft_printf","last_synced_at":"2025-04-14T23:02:15.337Z","repository":{"id":51612391,"uuid":"510124359","full_name":"gemartin99/ft_printf","owner":"gemartin99","description":"My own function that emulate the original printf","archived":false,"fork":false,"pushed_at":"2024-10-27T21:45:39.000Z","size":22,"stargazers_count":10,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-28T11:04:58.057Z","etag":null,"topics":["42born2code","42cursus","42ftprintf","42projects","educational-project"],"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/gemartin99.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":"2022-07-03T20:05:27.000Z","updated_at":"2024-12-18T20:28:35.000Z","dependencies_parsed_at":"2023-02-09T20:30:58.998Z","dependency_job_id":null,"html_url":"https://github.com/gemartin99/ft_printf","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/gemartin99%2Fft_printf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gemartin99%2Fft_printf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gemartin99%2Fft_printf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gemartin99%2Fft_printf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gemartin99","download_url":"https://codeload.github.com/gemartin99/ft_printf/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248975316,"owners_count":21192208,"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":["42born2code","42cursus","42ftprintf","42projects","educational-project"],"created_at":"2024-11-01T07:08:17.979Z","updated_at":"2025-04-14T23:02:15.319Z","avatar_url":"https://github.com/gemartin99.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 📝 Printf\n\n## Descripción \n\nEste proyecto consiste en replicar el funcionamiento de la función original de printf. \nSe deben implementar las siguientes conversiones:\n\n| Conversión  | Descripción\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t\t\t|\n|-------|-----------------------------------------------------------------------------------|\n| **%c** | Imprime un solo carácter.       \t\t\t\t\t\t\t\t\t\t\t\t\t|\n| **%s** | Imprime una string (como se define por defecto en C).\t\t\t\t\t\t\t\t\t\t\t|\n| **%p** | El puntero void * dado como argumento se imprime en formato hexadecimal.\t\t\t\t\t\t\t\t|\n| **%d** | Imprime un número decimal (base 10).\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t|\n| **%i** | Imprime un entero en base 10.               \t\t\t\t\t\t\t\t\t\t\t|\n| **%u** | Imprime un número decimal (base 10) sin signo.               \t\t\t\t\t\t\t\t\t|\n| **%x** | Imprime un número hexadecimal (base 16) en minúsculas.                \t\t\t\t|\n| **%X** | Imprime un número hexadecimal (base 16) en mayúsculas.                \t\t\t\t|\n| **%%** | Imprime el símbolo del porcentaje.                 \t\t\t\t\t\t\t\t\t\t\t|\n\n◦ La función printf retorna el número de caracteres impresos, o un valor negativo si ocurre un error.\n\n◦ No se debe implementar la gestión del buffer del original.\n\nPrototipo de la función:\n\n```C\nint ft_printf(char const *s, ...);\n```\n\n## Ejemplo de uso\n\n\u003cb\u003eCódigo: \u003c/b\u003e\n\n![B030DA8C-43A1-48E6-A658-AE30472548C0](https://user-images.githubusercontent.com/66915274/198844199-3761987c-df3d-4c3d-90d1-e9f30583b83a.jpeg)\n\n\u003cb\u003eOutput: \u003c/b\u003e\n\n\u003cimg width=\"538\" alt=\"Screen Shot 2022-10-29 at 6 54 40 PM\" src=\"https://user-images.githubusercontent.com/66915274/198843655-23c772e4-1465-458b-9642-019bc62456dc.png\"\u003e\n\n## Funciones autorizadas \n\n| Función  | Descripción\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t\t\t|\n|-------|-----------------------------------------------------------------------------------|\n| malloc | Solicitar un bloque de memoria del tamaño suministrado como parámetro.     \t\t\t\t\t\t\t\t\t\t\t\t\t|\n| free | Desasigna un bloque de memoria que se había asignado previamente mediante una llamada. \t\t\t\t\t\t\t\t\t\t\t|\n| write | Hace que los bytes que indiques del buffer sean escritos en el file descriptor seleccionado.\t\t\t\t\t\t\t\t|\n| va_start | Permite el acceso a los argumentos de la función variada.\t\t\t\t\t\t\t\t\t\t\t\t\t\t|\n| va_arg | Accede al siguiente argumento de la función variada.               \t\t\t\t\t\t\t\t\t\t\t|\n| va_copy | Hace una copia de los argumentos de la función variádica.               \t\t\t\t\t\t\t\t\t|\n| va_end | Finaliza el recorrido de los argumentos de la función variada.                \t\t\t\t|\n\n# Author ✍🏼\n\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://github.com/gemartin99/\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/66915274?v=4\" width=\"100px;\" alt=\"100px\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003egemartin\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://profile.intra.42.fr/users/gemartin\" title=\"Intra 42\"\u003e\u003cimg src=\"https://img.shields.io/badge/Barcelona-FFFFFF?style=plastic\u0026logo=42\u0026logoColor=000000\" alt=\"Intra 42\"/\u003e\u003c/a\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\n# Quizás pueda interesarte!\n\n### - Para ver mi progresion en el common core 42 ↙️\n\n[AQUÍ](https://github.com/gemartin99/42cursus)\n\n### - Mi perfil en la intranet de 42 ↙️\n[AQUÍ](https://profile.intra.42.fr/users/gemartin)\n\n# Contacto 📥\n\n◦ Email: gemartin@student.42barcelona.com\n\n◦ Linkedin: https://www.linkedin.com/in/gemartin99/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgemartin99%2Fft_printf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgemartin99%2Fft_printf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgemartin99%2Fft_printf/lists"}