Skip to content

Commit

Permalink
Se agregan los datos del alumno CAPUTO, Damian
Browse files Browse the repository at this point in the history
  • Loading branch information
DMC1988 committed Apr 17, 2021
1 parent 7e3337e commit 645dc78
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
2 changes: 2 additions & 0 deletions inc/alumnos.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ bool EstebanVolentini(char * cadena, size_t espacio);

bool LucasOrsi(char * cadena, size_t espacio);

bool DamianCaputo(char * cadena, size_t espacio);

/*=====[Prototypes (declarations) of public interrupt functions]=============*/

/*=====[C++ - end]===========================================================*/
Expand Down
10 changes: 10 additions & 0 deletions src/alumnos.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ 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) {
Expand All @@ -72,4 +73,13 @@ bool LucasOrsi(char * cadena, size_t espacio) {
};
return SerializarAlumno(cadena, espacio, &alumno);
}

bool DamianCaputo(char * cadena, size_t espacio) {
const struct alumno_s alumno = {
.apellidos = "Caputo",
.nombres = "Damian",
.documento = "34.137.919",
};
return SerializarAlumno(cadena, espacio, &alumno);
}
/*=====[Implementations of private functions]================================*/
10 changes: 10 additions & 0 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,22 @@ int main(int argc, char *argv[]) {

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 (DamianCaputo(cadena, sizeof(cadena))) {
printf("Alumno: %s\r\n", cadena);
} else {
printf("No se pudo serializar el alumno\r\n");
}


return 0;
}

0 comments on commit 645dc78

Please sign in to comment.