From 6339218347017c600160c57a621524346ebbeb0a Mon Sep 17 00:00:00 2001 From: lorsi96 Date: Sat, 10 Apr 2021 12:22:25 -0300 Subject: [PATCH 01/15] Se agregan los datos del alumno ORSI, Lucas --- inc/alumnos.h | 2 ++ src/alumnos.c | 8 ++++++++ src/main.c | 7 +++++++ 3 files changed, 17 insertions(+) diff --git a/inc/alumnos.h b/inc/alumnos.h index 037a37c..26df224 100644 --- a/inc/alumnos.h +++ b/inc/alumnos.h @@ -41,6 +41,8 @@ typedef struct alumno_s { bool SerializarAlumno(char * cadena, size_t espacio, const alumno_t alumno); +bool LucasOrsi(char * cadena, size_t espacio); + /*=====[Prototypes (declarations) of public interrupt functions]=============*/ /*=====[C++ - end]===========================================================*/ diff --git a/src/alumnos.c b/src/alumnos.c index 45cce7b..3010a30 100644 --- a/src/alumnos.c +++ b/src/alumnos.c @@ -46,4 +46,12 @@ bool SerializarAlumno(char * cadena, size_t espacio, const alumno_t alumno) { return (resultado >= 0); } +bool LucasOrsi(char * cadena, size_t espacio) { + const struct alumno_s alumno = { + .apellidos = "ORSI", + .nombres = "Lucas", + .documento = "38.492.146", + }; + return SerializarAlumno(cadena, espacio, &alumno); +} /*=====[Implementations of private functions]================================*/ diff --git a/src/main.c b/src/main.c index a7e9e9e..e32a4be 100644 --- a/src/main.c +++ b/src/main.c @@ -35,5 +35,12 @@ /*=====[Implementations of private functions]================================*/ int main(int argc, char *argv[]) { + char LucasOrsi_buffer[200] = {}; + + if (LucasOrsi(LucasOrsi_buffer, sizeof(LucasOrsi_buffer))) { + printf("Alumno: %s\r\n", LucasOrsi_buffer); + } else { + printf("No se pudo serializar el alumno\r\n"); + } return 0; } From c5df98b29588c5e7bbdc0f12875c887b7a0acf22 Mon Sep 17 00:00:00 2001 From: Esteban Volentini Date: Sat, 10 Apr 2021 12:33:40 -0300 Subject: [PATCH 02/15] Se agregan los datos del alumno VOLENTINI, Esteban --- inc/alumnos.h | 2 ++ src/alumnos.c | 9 +++++++++ src/main.c | 7 +++++++ 3 files changed, 18 insertions(+) diff --git a/inc/alumnos.h b/inc/alumnos.h index 037a37c..5c4629b 100644 --- a/inc/alumnos.h +++ b/inc/alumnos.h @@ -41,6 +41,8 @@ typedef struct alumno_s { bool SerializarAlumno(char * cadena, size_t espacio, const alumno_t alumno); +bool EstebanVolentini(char * cadena, size_t espacio); + /*=====[Prototypes (declarations) of public interrupt functions]=============*/ /*=====[C++ - end]===========================================================*/ diff --git a/src/alumnos.c b/src/alumnos.c index 45cce7b..8aa1f5a 100644 --- a/src/alumnos.c +++ b/src/alumnos.c @@ -46,4 +46,13 @@ bool SerializarAlumno(char * cadena, size_t espacio, const alumno_t alumno) { return (resultado >= 0); } +bool EstebanVolentini(char * cadena, size_t espacio) { + const struct alumno_s alumno = { + .apellidos = "VOLENTINI", + .nombres = "Esteban Daniel", + .documento = "23.517.968", + }; + + return SerializarAlumno(cadena, espacio, &alumno); +} /*=====[Implementations of private functions]================================*/ diff --git a/src/main.c b/src/main.c index a7e9e9e..96d369b 100644 --- a/src/main.c +++ b/src/main.c @@ -35,5 +35,12 @@ /*=====[Implementations of private functions]================================*/ int main(int argc, char *argv[]) { + char cadena[128]; + + if (EstebanVolentini(cadena, sizeof(cadena))) { + printf("Alumno: %s\r\n", cadena); + } else { + printf("No se pudo serializar el alumno\r\n"); + } return 0; } From 49c3539f11c2b1831536c0662538aedd2742dc4d Mon Sep 17 00:00:00 2001 From: Esteban Volentini Date: Sat, 10 Apr 2021 12:40:11 -0300 Subject: [PATCH 03/15] Se agregan los datos del alumno PERMINGEAT, Alejandro --- inc/alumnos.h | 2 ++ src/alumnos.c | 9 +++++++++ src/main.c | 8 ++++++++ 3 files changed, 19 insertions(+) diff --git a/inc/alumnos.h b/inc/alumnos.h index 037a37c..bed19e9 100644 --- a/inc/alumnos.h +++ b/inc/alumnos.h @@ -41,6 +41,8 @@ typedef struct alumno_s { bool SerializarAlumno(char * cadena, size_t espacio, const alumno_t alumno); +bool AlejandroPermingeat(char * cadena, size_t espacio); + /*=====[Prototypes (declarations) of public interrupt functions]=============*/ /*=====[C++ - end]===========================================================*/ diff --git a/src/alumnos.c b/src/alumnos.c index 45cce7b..f01d158 100644 --- a/src/alumnos.c +++ b/src/alumnos.c @@ -46,4 +46,13 @@ bool SerializarAlumno(char * cadena, size_t espacio, const alumno_t alumno) { return (resultado >= 0); } +bool AlejandroPermingeat(char * cadena, size_t espacio) { + const struct alumno_s alumno = { + .apellidos = "PERMINGEAT", + .nombres = "Alejandro", + .documento = "00.000.000", + }; + + return SerializarAlumno(cadena, espacio, &alumno); +} /*=====[Implementations of private functions]================================*/ diff --git a/src/main.c b/src/main.c index a7e9e9e..0312db1 100644 --- a/src/main.c +++ b/src/main.c @@ -35,5 +35,13 @@ /*=====[Implementations of private functions]================================*/ int main(int argc, char *argv[]) { + char cadena[128]; + + if (AlejandroPermingeat(cadena, sizeof(cadena))) { + printf("Alumno: %s\r\n", cadena); + } else { + printf("No se pudo serializar el alumno\r\n"); + } + return 0; } From 2931778ab4a5a39ad4215b6671c1ed8563cbae8b Mon Sep 17 00:00:00 2001 From: Martin Date: Sat, 10 Apr 2021 12:56:16 -0300 Subject: [PATCH 04/15] **"Se agregan los datos del alumno DUARTE, Martin"** --- .vscode/c_cpp_properties.json | 16 ++++++++++++++++ inc/alumnos.h | 2 ++ src/alumnos.c | 10 ++++++++++ src/main.c | 11 +++++++++++ 4 files changed, 39 insertions(+) create mode 100644 .vscode/c_cpp_properties.json diff --git a/.vscode/c_cpp_properties.json b/.vscode/c_cpp_properties.json new file mode 100644 index 0000000..2bfa787 --- /dev/null +++ b/.vscode/c_cpp_properties.json @@ -0,0 +1,16 @@ +{ + "configurations": [ + { + "name": "Linux", + "includePath": [ + "${workspaceFolder}/**" + ], + "defines": [], + "compilerPath": "/usr/bin/clang", + "cStandard": "c11", + "cppStandard": "c++14", + "intelliSenseMode": "linux-clang-x64" + } + ], + "version": 4 +} \ No newline at end of file diff --git a/inc/alumnos.h b/inc/alumnos.h index 037a37c..da12baf 100644 --- a/inc/alumnos.h +++ b/inc/alumnos.h @@ -41,6 +41,8 @@ typedef struct alumno_s { bool SerializarAlumno(char * cadena, size_t espacio, const alumno_t alumno); +bool MartinDuarte(char * cadena, size_t espacio); + /*=====[Prototypes (declarations) of public interrupt functions]=============*/ /*=====[C++ - end]===========================================================*/ diff --git a/src/alumnos.c b/src/alumnos.c index 45cce7b..86128a7 100644 --- a/src/alumnos.c +++ b/src/alumnos.c @@ -46,4 +46,14 @@ bool SerializarAlumno(char * cadena, size_t espacio, const alumno_t alumno) { return (resultado >= 0); } + bool MartinDuarte(char * cadena, size_t espacio) { + const struct alumno_s alumno = { + .apellidos = "DUARTE", + .nombres = "Martin Nicolás", + .documento = "38.170.436", + }; + + return SerializarAlumno(cadena, espacio, &alumno); + } + /*=====[Implementations of private functions]================================*/ diff --git a/src/main.c b/src/main.c index a7e9e9e..e6849f1 100644 --- a/src/main.c +++ b/src/main.c @@ -35,5 +35,16 @@ /*=====[Implementations of private functions]================================*/ int main(int argc, char *argv[]) { + +char cadena[120]; + + if (MartinDuarte(cadena, sizeof(cadena))) { + printf("Alumno: %s\r\n", cadena); + } else { + printf("No se pudo serializar el alumno\r\n"); + } + + + return 0; } From e6f5edbdbdc4d59674ebc6d3f8658247cc84aaff Mon Sep 17 00:00:00 2001 From: lorsi96 Date: Sat, 10 Apr 2021 13:11:28 -0300 Subject: [PATCH 05/15] =?UTF-8?q?Lucas=20corrigi=C3=B3=20su=20macana?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.c | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/src/main.c b/src/main.c index 12404b7..65aaf7e 100644 --- a/src/main.c +++ b/src/main.c @@ -35,15 +35,25 @@ /*=====[Implementations of private functions]================================*/ int main(int argc, char *argv[]) { + char cadena[128]; -char cadena[120]; - - if (MartinDuarte(cadena, sizeof(cadena))) { + if (AlejandroPermingeat(cadena, sizeof(cadena))) { + printf("Alumno: %s\r\n", cadena); + } else { + printf("No se pudo serializar el alumno\r\n"); + } + + if (EstebanVolentini(cadena, sizeof(cadena))) { printf("Alumno: %s\r\n", cadena); } else { printf("No se pudo serializar el alumno\r\n"); } + if (LucasOrsi(cadena, sizeof(cadena))) { + printf("Alumno: %s\r\n", cadena); + } else { + printf("No se pudo serializar el alumno\r\n"); + } return 0; -} +} \ No newline at end of file From f4ad53fb2a1a600ffe96123eba8125579363a09f Mon Sep 17 00:00:00 2001 From: German Velardez Date: Sat, 10 Apr 2021 13:11:35 -0300 Subject: [PATCH 06/15] agregado German --- inc/alumnos.h | 3 +++ src/alumnos.c | 11 +++++++++++ src/main.c | 16 ++++++++++++++++ 3 files changed, 30 insertions(+) diff --git a/inc/alumnos.h b/inc/alumnos.h index 9954686..634e452 100644 --- a/inc/alumnos.h +++ b/inc/alumnos.h @@ -48,6 +48,9 @@ bool EstebanVolentini(char * cadena, size_t espacio); bool LucasOrsi(char * cadena, size_t espacio); + +bool GermanVelardez(char * cadena, size_t espacio) ; + /*=====[Prototypes (declarations) of public interrupt functions]=============*/ /*=====[C++ - end]===========================================================*/ diff --git a/src/alumnos.c b/src/alumnos.c index 3b73ad3..84a3362 100644 --- a/src/alumnos.c +++ b/src/alumnos.c @@ -82,4 +82,15 @@ bool LucasOrsi(char * cadena, size_t espacio) { }; return SerializarAlumno(cadena, espacio, &alumno); } + + +bool GermanVelardez(char * cadena, size_t espacio) { + const struct alumno_s alumno = { + .apellidos = "Velardez", + .nombres = "German", + .documento = "37.165.604", + }; + return SerializarAlumno(cadena, espacio, &alumno); +} + /*=====[Implementations of private functions]================================*/ diff --git a/src/main.c b/src/main.c index 12404b7..d7b7fa6 100644 --- a/src/main.c +++ b/src/main.c @@ -45,5 +45,21 @@ char cadena[120]; } + + + + if (GermanVelardez(cadena, sizeof(cadena))) { + printf("Alumno: %s\r\n", cadena); + } else { + printf("No se pudo serializar el alumno\r\n"); + } + + + + + + + + return 0; } From 2aca0beb2986d2e9a33bbcbe323ad2b94e2b51bd Mon Sep 17 00:00:00 2001 From: lorsi96 Date: Sat, 10 Apr 2021 13:15:10 -0300 Subject: [PATCH 07/15] Lucas fix --- inc/alumnos.h | 1 + src/alumnos.c | 18 ++++++++++-------- src/main.c | 8 ++++---- 3 files changed, 15 insertions(+), 12 deletions(-) diff --git a/inc/alumnos.h b/inc/alumnos.h index 9954686..daae428 100644 --- a/inc/alumnos.h +++ b/inc/alumnos.h @@ -42,6 +42,7 @@ typedef struct alumno_s { bool SerializarAlumno(char * cadena, size_t espacio, const alumno_t alumno); bool MartinDuarte(char * cadena, size_t espacio); + bool AlejandroPermingeat(char * cadena, size_t espacio); bool EstebanVolentini(char * cadena, size_t espacio); diff --git a/src/alumnos.c b/src/alumnos.c index 3b73ad3..1f73387 100644 --- a/src/alumnos.c +++ b/src/alumnos.c @@ -46,15 +46,15 @@ bool SerializarAlumno(char * cadena, size_t espacio, const alumno_t alumno) { return (resultado >= 0); } - bool MartinDuarte(char * cadena, size_t espacio) { - const struct alumno_s alumno = { - .apellidos = "DUARTE", - .nombres = "Martin Nicolás", - .documento = "38.170.436", - }; +bool MartinDuarte(char * cadena, size_t espacio) { + const struct alumno_s alumno = { + .apellidos = "DUARTE", + .nombres = "Martin Nicolás", + .documento = "38.170.436", + }; - return SerializarAlumno(cadena, espacio, &alumno); - } + return SerializarAlumno(cadena, espacio, &alumno); +} bool AlejandroPermingeat(char * cadena, size_t espacio) { const struct alumno_s alumno = { @@ -72,6 +72,8 @@ bool EstebanVolentini(char * cadena, size_t espacio) { .nombres = "Esteban Daniel", .documento = "23.517.968", }; + + return SerializarAlumno(cadena, espacio, &alumno); } bool LucasOrsi(char * cadena, size_t espacio) { diff --git a/src/main.c b/src/main.c index 65aaf7e..439b17f 100644 --- a/src/main.c +++ b/src/main.c @@ -42,14 +42,14 @@ int main(int argc, char *argv[]) { } else { printf("No se pudo serializar el alumno\r\n"); } - - if (EstebanVolentini(cadena, sizeof(cadena))) { + + if (LucasOrsi(cadena, sizeof(cadena))) { printf("Alumno: %s\r\n", cadena); } else { printf("No se pudo serializar el alumno\r\n"); } - - if (LucasOrsi(cadena, sizeof(cadena))) { + + if (EstebanVolentini(cadena, sizeof(cadena))) { printf("Alumno: %s\r\n", cadena); } else { printf("No se pudo serializar el alumno\r\n"); From 7676f1a52bedcc22ffd2afb468186b7879fd0202 Mon Sep 17 00:00:00 2001 From: josueelias9 <30317390+josueelias9@users.noreply.github.com> Date: Sat, 10 Apr 2021 11:15:16 -0500 Subject: [PATCH 08/15] Josue! Josue! --- src/alumnos.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/alumnos.c b/src/alumnos.c index 3b73ad3..6170a44 100644 --- a/src/alumnos.c +++ b/src/alumnos.c @@ -82,4 +82,12 @@ bool LucasOrsi(char * cadena, size_t espacio) { }; return SerializarAlumno(cadena, espacio, &alumno); } +bool JosueHuaman(char * cadena, size_t espacio) { + const struct alumno_s alumno = { + .apellidos = "HUAMAN", + .nombres = "Josue", + .documento = "46608339", + }; + return SerializarAlumno(cadena, espacio, &alumno); +} /*=====[Implementations of private functions]================================*/ From be4c1c33467292ce57a7386185c7bf08fa8073c0 Mon Sep 17 00:00:00 2001 From: lorsi96 Date: Sat, 10 Apr 2021 13:16:02 -0300 Subject: [PATCH 09/15] Lucas Fix --- src/main.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/main.c b/src/main.c index 498a422..8908fa8 100644 --- a/src/main.c +++ b/src/main.c @@ -55,10 +55,7 @@ int main(int argc, char *argv[]) { printf("No se pudo serializar el alumno\r\n"); } - - - - if (GermanVelardez(cadena, sizeof(cadena))) { + if (GermanVelardez(cadena, sizeof(cadena))) { printf("Alumno: %s\r\n", cadena); } else { printf("No se pudo serializar el alumno\r\n"); From 36cc951166cd2b951a7c4e289c2d8aa25b21f654 Mon Sep 17 00:00:00 2001 From: Martin Date: Sat, 10 Apr 2021 13:16:14 -0300 Subject: [PATCH 10/15] **"Se agregan los datos del alumno DUARTE, Martin"** --- src/main.c | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index 12404b7..9383c7c 100644 --- a/src/main.c +++ b/src/main.c @@ -37,13 +37,29 @@ int main(int argc, char *argv[]) { char cadena[120]; + char cadena[128]; + if (AlejandroPermingeat(cadena, sizeof(cadena))) { + printf("Alumno: %s\r\n", cadena); + } else { + printf("No se pudo serializar el alumno\r\n"); + } + if (EstebanVolentini(cadena, sizeof(cadena))) { + printf("Alumno: %s\r\n", cadena); + } + else { + printf("No se pudo serializar el alumno\r\n"); + } + if (LucasOrsi(cadena, sizeof(cadena))) { + printf("Alumno: %s\r\n", cadena); + } else { + printf("No se pudo serializar el alumno\r\n"); + } if (MartinDuarte(cadena, sizeof(cadena))) { printf("Alumno: %s\r\n", cadena); } else { printf("No se pudo serializar el alumno\r\n"); } - return 0; } From e77c17029c5efb0ec8ce1e55e8d47ba3f09200ec Mon Sep 17 00:00:00 2001 From: Martin Date: Sat, 10 Apr 2021 13:17:51 -0300 Subject: [PATCH 11/15] **"Se agregan los datos del alumno DUARTE, Martin"** --- src/main.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/main.c b/src/main.c index 9383c7c..290f057 100644 --- a/src/main.c +++ b/src/main.c @@ -37,7 +37,6 @@ int main(int argc, char *argv[]) { char cadena[120]; - char cadena[128]; if (AlejandroPermingeat(cadena, sizeof(cadena))) { printf("Alumno: %s\r\n", cadena); From 7e9517136219d9110c96994985dc3a40e0893b16 Mon Sep 17 00:00:00 2001 From: Ginokun Date: Sat, 10 Apr 2021 13:19:01 -0300 Subject: [PATCH 12/15] **"Se agregan los datos del alumno Meghinasso, Matias"** --- src/main.c | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/src/main.c b/src/main.c index a7e9e9e..e97fe55 100644 --- a/src/main.c +++ b/src/main.c @@ -6,7 +6,7 @@ * Version: 0.1.0 * Creation Date: 2019/06/21 */ - + /*=====[Inclusion of own header]=============================================*/ #include "alumnos.h" @@ -34,6 +34,17 @@ /*=====[Implementations of private functions]================================*/ -int main(int argc, char *argv[]) { +int main(int argc, char *argv[]) +{ + char cadena[128]; + + if (MatiasMeghinasso(cadena, sizeof(cadena))) + { + printf("Alumno: %s\r\n", cadena); + } + else + { + printf("No se pudo serializar el alumno\r\n"); + } return 0; } From da447487ae1973491a74445651122e299493e10e Mon Sep 17 00:00:00 2001 From: Ginokun Date: Sat, 10 Apr 2021 13:19:47 -0300 Subject: [PATCH 13/15] **"Se agregan los datos del alumno MEGHINASSO, Matias"** --- inc/alumnos.h | 2 ++ src/alumnos.c | 30 +++++++++++++++++++++--------- 2 files changed, 23 insertions(+), 9 deletions(-) diff --git a/inc/alumnos.h b/inc/alumnos.h index 037a37c..9969dcc 100644 --- a/inc/alumnos.h +++ b/inc/alumnos.h @@ -41,6 +41,8 @@ typedef struct alumno_s { bool SerializarAlumno(char * cadena, size_t espacio, const alumno_t alumno); +bool MatiasMeghinasso(char * cadena, size_t espacio); + /*=====[Prototypes (declarations) of public interrupt functions]=============*/ /*=====[C++ - end]===========================================================*/ diff --git a/src/alumnos.c b/src/alumnos.c index 45cce7b..b150d18 100644 --- a/src/alumnos.c +++ b/src/alumnos.c @@ -6,7 +6,7 @@ * Version: 0.1.0 * Creation Date: 2019/06/21 */ - + /*=====[Inclusion of own header]=============================================*/ #include "alumnos.h" @@ -32,18 +32,30 @@ /*=====[Implementations of interrupt functions]==============================*/ -bool SerializarAlumno(char * cadena, size_t espacio, const alumno_t alumno) { +bool SerializarAlumno(char *cadena, size_t espacio, const alumno_t alumno) +{ int resultado; const char FORMATO[] = "{" - "\"documento\":\"%s\"," - "\"apellidos\":\"%s\"," - "\"nombres\":\"%s\"" - "}"; + "\"documento\":\"%s\"," + "\"apellidos\":\"%s\"," + "\"nombres\":\"%s\"" + "}"; - resultado = snprintf(cadena, espacio, FORMATO, - alumno->documento, alumno->apellidos, alumno->nombres); + resultado = snprintf(cadena, espacio, FORMATO, + alumno->documento, alumno->apellidos, alumno->nombres); return (resultado >= 0); } -/*=====[Implementations of private functions]================================*/ +bool MatiasMeghinasso(char *cadena, size_t espacio) +{ + const struct alumno_s alumno = { + .apellidos = "Matias", + .nombres = "Matias Gino", + .documento = "36.806.968", + }; + + return SerializarAlumno(cadena, espacio, &alumno); +} + +/*=====[Implementations of private functions]================================*/ \ No newline at end of file From 6b7a841185095379acc2b369d635624d99bf438f Mon Sep 17 00:00:00 2001 From: Esteban Volentini Date: Sat, 10 Apr 2021 13:24:06 -0300 Subject: [PATCH 14/15] Eliminacion de los datos de VELARDEZ, German --- inc/alumnos.h | 3 --- src/alumnos.c | 10 ---------- src/main.c | 16 +++------------- 3 files changed, 3 insertions(+), 26 deletions(-) diff --git a/inc/alumnos.h b/inc/alumnos.h index 2a17b3b..daae428 100644 --- a/inc/alumnos.h +++ b/inc/alumnos.h @@ -49,9 +49,6 @@ bool EstebanVolentini(char * cadena, size_t espacio); bool LucasOrsi(char * cadena, size_t espacio); - -bool GermanVelardez(char * cadena, size_t espacio) ; - /*=====[Prototypes (declarations) of public interrupt functions]=============*/ /*=====[C++ - end]===========================================================*/ diff --git a/src/alumnos.c b/src/alumnos.c index 2ffca40..14478a2 100644 --- a/src/alumnos.c +++ b/src/alumnos.c @@ -85,14 +85,4 @@ bool LucasOrsi(char * cadena, size_t espacio) { return SerializarAlumno(cadena, espacio, &alumno); } - -bool GermanVelardez(char * cadena, size_t espacio) { - const struct alumno_s alumno = { - .apellidos = "Velardez", - .nombres = "German", - .documento = "37.165.604", - }; - return SerializarAlumno(cadena, espacio, &alumno); -} - /*=====[Implementations of private functions]================================*/ diff --git a/src/main.c b/src/main.c index 8b69e1c..4f23480 100644 --- a/src/main.c +++ b/src/main.c @@ -48,35 +48,25 @@ int main(int argc, char *argv[]) { } else { printf("No se pudo serializar el alumno\r\n"); } + if (EstebanVolentini(cadena, sizeof(cadena))) { printf("Alumno: %s\r\n", cadena); } else { printf("No se pudo serializar el alumno\r\n"); } + if (LucasOrsi(cadena, sizeof(cadena))) { printf("Alumno: %s\r\n", cadena); } else { printf("No se pudo serializar el alumno\r\n"); } - if (MartinDuarte(cadena, sizeof(cadena))) { - printf("Alumno: %s\r\n", cadena); - } else { - printf("No se pudo serializar el alumno\r\n"); - } - if (GermanVelardez(cadena, sizeof(cadena))) { + if (MartinDuarte(cadena, sizeof(cadena))) { printf("Alumno: %s\r\n", cadena); } else { printf("No se pudo serializar el alumno\r\n"); } - - - - - - - return 0; } \ No newline at end of file From 6566fead8b50426d18f87bfa6e5377414a9bf59c Mon Sep 17 00:00:00 2001 From: josueelias9 <30317390+josueelias9@users.noreply.github.com> Date: Sat, 10 Apr 2021 11:27:41 -0500 Subject: [PATCH 15/15] Hola Hola --- src/alumnos.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/alumnos.c b/src/alumnos.c index 0690ecd..d4f0767 100644 --- a/src/alumnos.c +++ b/src/alumnos.c @@ -93,4 +93,12 @@ bool GermanVelardez(char * cadena, size_t espacio) { }; return SerializarAlumno(cadena, espacio, &alumno); } +bool JosueElias(char * cadena, size_t espacio) { + const struct alumno_s alumno = { + .apellidos = "Velardez", + .nombres = "German", + .documento = "37.165.604", + }; + return SerializarAlumno(cadena, espacio, &alumno); +} /*=====[Implementations of private functions]================================*/ \ No newline at end of file