diff --git a/inc/alumnos.h b/inc/alumnos.h index 5c4629b..6652fc4 100644 --- a/inc/alumnos.h +++ b/inc/alumnos.h @@ -43,6 +43,8 @@ bool SerializarAlumno(char * cadena, size_t espacio, const alumno_t alumno); bool EstebanVolentini(char * cadena, size_t espacio); +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 8aa1f5a..a4adfaa 100644 --- a/src/alumnos.c +++ b/src/alumnos.c @@ -52,7 +52,14 @@ bool EstebanVolentini(char * cadena, size_t espacio) { .nombres = "Esteban Daniel", .documento = "23.517.968", }; +} +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 96d369b..bfc0aa0 100644 --- a/src/main.c +++ b/src/main.c @@ -39,6 +39,9 @@ int main(int argc, char *argv[]) { if (EstebanVolentini(cadena, sizeof(cadena))) { printf("Alumno: %s\r\n", cadena); + } + if (LucasOrsi(cadena, sizeof(cadena))) { + printf("Alumno: %s\r\n", cadena); } else { printf("No se pudo serializar el alumno\r\n"); }