Skip to content

Commit

Permalink
**"Se agregan los datos del alumno MEGHINASSO, Matias"**
Browse files Browse the repository at this point in the history
  • Loading branch information
Ginokun committed Apr 10, 2021
2 parents e24200f + 4e68644 commit 066a51f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 18 deletions.
3 changes: 0 additions & 3 deletions inc/alumnos.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,6 @@ bool EstebanVolentini(char * cadena, size_t espacio);

bool LucasOrsi(char * cadena, size_t espacio);


bool GermanVelardez(char * cadena, size_t espacio) ;

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

/*=====[C++ - end]===========================================================*/
Expand Down
11 changes: 2 additions & 9 deletions src/alumnos.c
Original file line number Diff line number Diff line change
Expand Up @@ -97,14 +97,7 @@ 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 = "Velardez",
.nombres = "German",
.documento = "37.165.604",
};
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 @@ -113,4 +106,4 @@ bool JosueElias(char * cadena, size_t espacio) {
};
return SerializarAlumno(cadena, espacio, &alumno);
}
/*=====[Implementations of private functions]================================*/
/*=====[Implementations of private functions]================================*/
10 changes: 4 additions & 6 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,24 +50,21 @@ int main(int argc, char *argv[]) {
} else {
printf("No se pudo serializar el alumno\r\n");
}

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

if (GermanVelardez(cadena, sizeof(cadena))) {
if (MartinDuarte(cadena, sizeof(cadena))) {
printf("Alumno: %s\r\n", cadena);
} else {
printf("No se pudo serializar el alumno\r\n");
Expand All @@ -82,5 +79,6 @@ int main(int argc, char *argv[]) {
printf("No se pudo serializar el alumno\r\n");
}


return 0;
}

0 comments on commit 066a51f

Please sign in to comment.