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"); + } +