From 6339218347017c600160c57a621524346ebbeb0a Mon Sep 17 00:00:00 2001 From: lorsi96 Date: Sat, 10 Apr 2021 12:22:25 -0300 Subject: [PATCH 01/27] 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/27] 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/27] 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/27] **"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/27] =?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/27] 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/27] 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/27] 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/27] 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/27] **"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/27] **"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 8d66a065c813addcc885add8f563e8857d03ff8b Mon Sep 17 00:00:00 2001 From: fmeghi Date: Sat, 10 Apr 2021 13:18:07 -0300 Subject: [PATCH 12/27] "Se agregan los datos del alumno MEGHINASSO, Federico" --- inc/alumnos.h | 2 ++ src/alumnos.c | 10 ++++++++++ src/main.c | 7 +++++++ 3 files changed, 19 insertions(+) diff --git a/inc/alumnos.h b/inc/alumnos.h index 037a37c..44f2867 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 FedericoMeghinasso(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..9eb9844 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 FedericoMeghinasso(char * cadena, size_t espacio) { + const struct alumno_s alumno = { + .apellidos = "MEGHINASSO", + .nombres = "Federico Nicolas", + .documento = "35.229.281", + }; + + return SerializarAlumno(cadena, espacio, &alumno); + } + /*=====[Implementations of private functions]================================*/ diff --git a/src/main.c b/src/main.c index a7e9e9e..319e58f 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 (FedericoMeghinasso(cadena, sizeof(cadena))) { + printf("Alumno: %s\r\n", cadena); + } else { + printf("No se pudo serializar el alumno\r\n"); + } return 0; } From 7e9517136219d9110c96994985dc3a40e0893b16 Mon Sep 17 00:00:00 2001 From: Ginokun Date: Sat, 10 Apr 2021 13:19:01 -0300 Subject: [PATCH 13/27] **"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 14/27] **"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 15/27] 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 16/27] 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 From 35a6e1bcd05eeb487a431a55b5ded35fb68b7bc5 Mon Sep 17 00:00:00 2001 From: German Velardez Date: Sat, 10 Apr 2021 13:43:29 -0300 Subject: [PATCH 17/27] Se agregan los daots del alumno Velardez, German --- inc/alumnos.h | 2 ++ src/main.c | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/inc/alumnos.h b/inc/alumnos.h index daae428..cc9ef0c 100644 --- a/inc/alumnos.h +++ b/inc/alumnos.h @@ -49,6 +49,8 @@ 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/main.c b/src/main.c index bf6f034..52d421d 100644 --- a/src/main.c +++ b/src/main.c @@ -68,6 +68,12 @@ int main(int argc, char *argv[]) { printf("No se pudo serializar el alumno\r\n"); } + if (GermanVelardez(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 ab647d8cbc77e7e9585ea25f542ee5f78859a665 Mon Sep 17 00:00:00 2001 From: Nicomedes77 Date: Sat, 10 Apr 2021 13:49:12 -0300 Subject: [PATCH 18/27] **"Se agregan los datos del alumno VARGAS, Nicolas"** --- inc/alumnos.h | 4 ++-- src/alumnos.c | 10 ++++++++++ src/main.c | 6 ++++++ 3 files changed, 18 insertions(+), 2 deletions(-) diff --git a/inc/alumnos.h b/inc/alumnos.h index 037a37c..8665162 100644 --- a/inc/alumnos.h +++ b/inc/alumnos.h @@ -36,11 +36,11 @@ typedef struct alumno_s { } const * alumno_t; /*=====[Definitions of public global variables]==============================*/ - +char cadena[100]; /*=====[Prototypes (declarations) of public functions]=======================*/ bool SerializarAlumno(char * cadena, size_t espacio, const alumno_t alumno); - +bool NicolasVargas(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..27c9241 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 NicolasVargas(char * cadena, size_t espacio) { + const struct alumno_s alumno = { + .apellidos = "VARGAS", + .nombres = "Nicolás", + .documento = "33.154.750", + }; + + return SerializarAlumno(cadena, espacio, &alumno); +} + /*=====[Implementations of private functions]================================*/ diff --git a/src/main.c b/src/main.c index a7e9e9e..b71c278 100644 --- a/src/main.c +++ b/src/main.c @@ -35,5 +35,11 @@ /*=====[Implementations of private functions]================================*/ int main(int argc, char *argv[]) { +if (NicolasVargas(cadena, sizeof(cadena))) { + printf("Alumno: %s\r\n", cadena); +} else { + printf("No se pudo serializar el alumno\r\n"); +} + return 0; } From 68b77634b4e58b7944149b704bb96222be0079f0 Mon Sep 17 00:00:00 2001 From: German Velardez Date: Sat, 10 Apr 2021 13:54:26 -0300 Subject: [PATCH 19/27] solucionando confilctos? --- src/alumnos.c | 9 +++++++++ src/main.c | 8 ++++++++ 2 files changed, 17 insertions(+) diff --git a/src/alumnos.c b/src/alumnos.c index 460989a..c780b13 100644 --- a/src/alumnos.c +++ b/src/alumnos.c @@ -85,6 +85,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 = "VOLENTINI", + .nombres = "Esteban Daniel", + .documento = "23.517.968", + }; + return SerializarAlumno(cadena, espacio, &alumno); +} + /*=====[Implementations of private functions]================================*/ bool JosueElias(char * cadena, size_t espacio) { const struct alumno_s alumno = { diff --git a/src/main.c b/src/main.c index 52d421d..6719a4a 100644 --- a/src/main.c +++ b/src/main.c @@ -68,6 +68,14 @@ int main(int argc, char *argv[]) { printf("No se pudo serializar el alumno\r\n"); } + + + + + + + + if (GermanVelardez(cadena, sizeof(cadena))) { printf("Alumno: %s\r\n", cadena); } else { From 9bf5cacef3f66c0d25c2f078ef29cdd68fd798b4 Mon Sep 17 00:00:00 2001 From: fmeghi Date: Sat, 10 Apr 2021 13:57:02 -0300 Subject: [PATCH 20/27] Se agregan los datos del alumno MEGHINASSO, Federico --- .gitignore | 1 + .vscode/c_cpp_properties.json | 16 ---------------- makefile | 4 ++-- 3 files changed, 3 insertions(+), 18 deletions(-) delete mode 100644 .vscode/c_cpp_properties.json diff --git a/.gitignore b/.gitignore index 378eac2..597124d 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ build +/.vscode diff --git a/.vscode/c_cpp_properties.json b/.vscode/c_cpp_properties.json deleted file mode 100644 index 2bfa787..0000000 --- a/.vscode/c_cpp_properties.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "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/makefile b/makefile index 4c2270a..6e5d9a6 100644 --- a/makefile +++ b/makefile @@ -24,8 +24,8 @@ $(OUT_DIR): $(BIN_DIR): $(OUT_DIR) @echo Creating output binaries folder -# @mkdir $(BIN_DIR) + @mkdir $(BIN_DIR) $(OBJ_DIR): $(OUT_DIR) @echo Creating output objects folder -# @mkdir $(OBJ_DIR) + @mkdir $(OBJ_DIR) From 4b27b140f03c14e53fa181b3d1a6456f2a3f79c6 Mon Sep 17 00:00:00 2001 From: Roboart Date: Sat, 10 Apr 2021 13:09:35 -0400 Subject: [PATCH 21/27] Se agregan los datos del alumno Rodriguez, Osvaldo --- 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..8938c1a 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 RodriguezOsvaldo(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..5118153 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 RodriguezOsvaldo(char * cadena, size_t espacio) { + const struct alumno_s alumno = { + .apellidos = "RODRIGUEZ", + .nombres = "Osvaldo Antonio", + .documento = "15.123.345", + }; + + return SerializarAlumno(cadena, espacio, &alumno); +} /*=====[Implementations of private functions]================================*/ diff --git a/src/main.c b/src/main.c index a7e9e9e..79c1dcb 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 (RodriguezOsvaldo(cadena, sizeof(cadena))) { + printf("Alumno: %s\r\n", cadena); + } else { + printf("No se pudo serializar el alumno\r\n"); + } + return 0; } From af2065b30167a152a846ca3281ed9afa1664213f Mon Sep 17 00:00:00 2001 From: Jr130797 Date: Sat, 10 Apr 2021 13:20:14 -0400 Subject: [PATCH 22/27] Se agregan los datos del alumno VARGAS MARZA, Ivan --- inc/alumnos.h | 2 ++ src/alumnos.c | 9 +++++++++ src/main.c | 6 ++++++ 3 files changed, 17 insertions(+) diff --git a/inc/alumnos.h b/inc/alumnos.h index 037a37c..5f86d45 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 IvanVargasMarza(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..d9998ba 100644 --- a/src/alumnos.c +++ b/src/alumnos.c @@ -45,5 +45,14 @@ bool SerializarAlumno(char * cadena, size_t espacio, const alumno_t alumno) { return (resultado >= 0); } +bool IvanVargasMarza(char * cadena, size_t espacio) { + const struct alumno_s alumno = { + .apellidos = "VARGAS", + .nombres = "Ivan", + .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..1574942 100644 --- a/src/main.c +++ b/src/main.c @@ -35,5 +35,11 @@ /*=====[Implementations of private functions]================================*/ int main(int argc, char *argv[]) { + char cadena[120]; + if (IvanVargasMarza(cadena, sizeof(cadena))) { + printf("Alumno: %s\r\n", cadena); + } else { + printf("No se pudo serializar el alumno\r\n"); + } return 0; } From 1bf6b36b6693a524fd896e24db2f261b36986abb Mon Sep 17 00:00:00 2001 From: jdalvaradocol <80493134+jdalvaradocol@users.noreply.github.com> Date: Sat, 10 Apr 2021 13:07:02 -0500 Subject: [PATCH 23/27] Se agregan los datos del alumno Alvarado, Jose" --- inc/alumnos.h | 2 ++ src/alumnos.c | 9 +++++++++ src/main.c | 12 ++++++++++++ 3 files changed, 23 insertions(+) diff --git a/inc/alumnos.h b/inc/alumnos.h index a678a88..0eb487f 100644 --- a/inc/alumnos.h +++ b/inc/alumnos.h @@ -59,6 +59,8 @@ bool EstebanVolentini(char * cadena, size_t espacio); bool LucasOrsi(char * cadena, size_t espacio); +bool JoseAlvarado(char * cadena, size_t espacio); + /*=====[Prototypes (declarations) of public interrupt functions]=============*/ /*=====[C++ - end]===========================================================*/ diff --git a/src/alumnos.c b/src/alumnos.c index 1f51da1..0c61144 100644 --- a/src/alumnos.c +++ b/src/alumnos.c @@ -135,6 +135,15 @@ bool LucasOrsi(char * cadena, size_t espacio) { return SerializarAlumno(cadena, espacio, &alumno); } +bool JoseAlvarado(char * cadena, size_t espacio) { + const struct alumno_s alumno = { + .apellidos = "Alvarado", + .nombres = "Jose David", + .documento = "81.740.023", + }; + return SerializarAlumno(cadena, espacio, &alumno); +} + /*=====[Implementations of private functions]================================*/ bool JosueElias(char * cadena, size_t espacio) { const struct alumno_s alumno = { diff --git a/src/main.c b/src/main.c index 976b89c..9d52a4f 100644 --- a/src/main.c +++ b/src/main.c @@ -9,6 +9,10 @@ /*=====[Inclusion of own header]=============================================*/ + + + + #include "alumnos.h" #include @@ -100,6 +104,14 @@ int main(int argc, char *argv[]) { printf("No se pudo serializar el alumno\r\n"); } + if (JoseAlvarado(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 f538cfdbc023b7775d36cbaf5e23cb99fc0ed445 Mon Sep 17 00:00:00 2001 From: Alejandro Date: Sat, 10 Apr 2021 15:50:13 -0300 Subject: [PATCH 24/27] "Se agregan los datos del alumno ROUGIER, Alejandro" --- inc/alumnos.h | 2 ++ src/alumnos.c | 10 ++++++++++ src/main.c | 8 ++++++++ 3 files changed, 20 insertions(+) diff --git a/inc/alumnos.h b/inc/alumnos.h index 037a37c..7c8f8ed 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 AlejandroRougier(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..6f49575 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 AlejandroRougier(char * cadena, size_t espacio) { + const struct alumno_s alumno = { + .apellidos = "ROUGIER", + .nombres = "Omar Alejandro", + .documento = "22.661.059", + }; + + return SerializarAlumno(cadena, espacio, &alumno); + } + /*=====[Implementations of private functions]================================*/ diff --git a/src/main.c b/src/main.c index a7e9e9e..fb8b699 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 (AlejandroRougier(cadena, sizeof(cadena))) { + printf("Alumno: %s\r\n", cadena); + } else { + printf("No se pudo serializar el alumno\r\n"); + } + return 0; } From 5905dca6b1adca21a81a9b40ad6d752066714548 Mon Sep 17 00:00:00 2001 From: German Velardez Date: Sat, 10 Apr 2021 17:04:20 -0300 Subject: [PATCH 25/27] Se agregaron los datos de alumnos Velardez, German Gabriel --- src/alumnos.c | 11 +++++++---- src/main.c | 6 ++++++ 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/src/alumnos.c b/src/alumnos.c index c780b13..cfcf85e 100644 --- a/src/alumnos.c +++ b/src/alumnos.c @@ -87,14 +87,14 @@ bool LucasOrsi(char * cadena, size_t espacio) { bool GermanVelardez(char * cadena, size_t espacio){ const struct alumno_s alumno = { - .apellidos = "VOLENTINI", - .nombres = "Esteban Daniel", - .documento = "23.517.968", + .apellidos = "Velardez", + .nombres = "German Gabriel", + .documento = "37165604", }; return SerializarAlumno(cadena, espacio, &alumno); } -/*=====[Implementations of private functions]================================*/ + bool JosueElias(char * cadena, size_t espacio) { const struct alumno_s alumno = { .apellidos = "Velardez", @@ -103,4 +103,7 @@ bool JosueElias(char * cadena, size_t espacio) { }; return SerializarAlumno(cadena, espacio, &alumno); } + +/*=====[Implementations of private functions]================================*/ + /*=====[Implementations of private functions]================================*/ diff --git a/src/main.c b/src/main.c index 6719a4a..d342d2b 100644 --- a/src/main.c +++ b/src/main.c @@ -68,6 +68,12 @@ int main(int argc, char *argv[]) { printf("No se pudo serializar el alumno\r\n"); } + if (GermanVelardez(cadena, sizeof(cadena))) { + printf("Alumno: %s\r\n", cadena); + } else { + printf("No se pudo serializar el alumno\r\n"); + } + From c62577c6a98d2007d6b81e6d1e3325d2ba64fa9d Mon Sep 17 00:00:00 2001 From: jdalvaradocol <80493134+jdalvaradocol@users.noreply.github.com> Date: Sat, 10 Apr 2021 15:24:18 -0500 Subject: [PATCH 26/27] Se modifican los datos del alumno Alvarado, Jose. --- src/main.c | 33 --------------------------------- 1 file changed, 33 deletions(-) diff --git a/src/main.c b/src/main.c index d07c919..b0ee0eb 100644 --- a/src/main.c +++ b/src/main.c @@ -9,10 +9,6 @@ /*=====[Inclusion of own header]=============================================*/ - - - - #include "alumnos.h" #include @@ -42,12 +38,6 @@ int main(int argc, char *argv[]) { char cadena[128]; - - if (AlejandroRougier(cadena, sizeof(cadena))) { - printf("Alumno: %s\r\n", cadena); - } else { - printf("No se pudo serializar el alumno\r\n"); - } if (RodriguezOsvaldo(cadena, sizeof(cadena))) { printf("Alumno: %s\r\n", cadena); @@ -110,28 +100,6 @@ int main(int argc, char *argv[]) { printf("No se pudo serializar el alumno\r\n"); } -<<<<<<< HEAD - if (GermanVelardez(cadena, sizeof(cadena))) { - printf("Alumno: %s\r\n", cadena); - } else { - printf("No se pudo serializar el alumno\r\n"); - } - - - - - - - - - - if (GermanVelardez(cadena, sizeof(cadena))) { - printf("Alumno: %s\r\n", cadena); - } else { - printf("No se pudo serializar el alumno\r\n"); - } - -======= if (JoseAlvarado(cadena, sizeof(cadena))) { printf("Alumno: %s\r\n", cadena); @@ -140,7 +108,6 @@ int main(int argc, char *argv[]) { { printf("No se pudo serializar el alumno\r\n"); } ->>>>>>> 73d525274ee31f953a502521fdc39bae3135dd71 return 0; } \ No newline at end of file From c0cfb7145db7d90e3eb77fd0f99a2b2b5a027e93 Mon Sep 17 00:00:00 2001 From: jdalvaradocol <80493134+jdalvaradocol@users.noreply.github.com> Date: Sat, 10 Apr 2021 15:25:57 -0500 Subject: [PATCH 27/27] Se modifican los datos del alumno Alvarado, Jose --- inc/alumnos.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/inc/alumnos.h b/inc/alumnos.h index a3bd3ae..d08ab7d 100644 --- a/inc/alumnos.h +++ b/inc/alumnos.h @@ -61,11 +61,9 @@ bool EstebanVolentini(char * cadena, size_t espacio); bool LucasOrsi(char * cadena, size_t espacio); -<<<<<<< HEAD bool GermanVelardez(char * cadena, size_t espacio); -======= + bool JoseAlvarado(char * cadena, size_t espacio); ->>>>>>> 73d525274ee31f953a502521fdc39bae3135dd71 /*=====[Prototypes (declarations) of public interrupt functions]=============*/