Skip to content

Commit

Permalink
Se agregaron los datos de alumnos Velardez, German Gabriel
Browse files Browse the repository at this point in the history
  • Loading branch information
Germanvelardez2018 committed Apr 10, 2021
1 parent 68b7763 commit 5905dca
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/alumnos.c
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -103,4 +103,7 @@ bool JosueElias(char * cadena, size_t espacio) {
};
return SerializarAlumno(cadena, espacio, &alumno);
}

/*=====[Implementations of private functions]================================*/

/*=====[Implementations of private functions]================================*/
6 changes: 6 additions & 0 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}




Expand Down

0 comments on commit 5905dca

Please sign in to comment.