Skip to content

Commit

Permalink
Merge branch 'original'
Browse files Browse the repository at this point in the history
  • Loading branch information
lorsi96 committed Apr 10, 2021
2 parents c5df98b + 6339218 commit 34c739a
Show file tree
Hide file tree
Showing 3 changed files with 12 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 @@ -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]===========================================================*/
Expand Down
7 changes: 7 additions & 0 deletions src/alumnos.c
Original file line number Diff line number Diff line change
Expand Up @@ -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]================================*/
3 changes: 3 additions & 0 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
Expand Down

0 comments on commit 34c739a

Please sign in to comment.