Skip to content

Commit

Permalink
solucionando confilctos?
Browse files Browse the repository at this point in the history
  • Loading branch information
Germanvelardez2018 committed Apr 10, 2021
1 parent 35a6e1b commit 68b7763
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/alumnos.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,15 @@ bool LucasOrsi(char * cadena, size_t espacio) {
return SerializarAlumno(cadena, espacio, &alumno);
}

bool GermanVelardez(char * cadena, size_t espacio){
const struct alumno_s alumno = {
.apellidos = "VOLENTINI",
.nombres = "Esteban Daniel",
.documento = "23.517.968",
};
return SerializarAlumno(cadena, espacio, &alumno);
}

/*=====[Implementations of private functions]================================*/
bool JosueElias(char * cadena, size_t espacio) {
const struct alumno_s alumno = {
Expand Down
8 changes: 8 additions & 0 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,14 @@ 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 {
Expand Down

0 comments on commit 68b7763

Please sign in to comment.