-
-
Save parzibyte/dbda526d7a53a5657d71a2c4d918eac2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Lo mismo que "buscarPeliculaPorNombre" pero ahora también busca por día y clasificación | |
void buscarPeliculaPorDiaYClasificacion(char dia[MAXIMA_LONGITUD_CADENA], char clasificacion) { | |
printf("\n--Resultados de busqueda por dia y clasificacion --\n"); | |
struct detalleDePelicula *temporal = superior; | |
while (temporal != NULL) { | |
if (strcmp(dia, temporal->dia) == 0 && temporal->clasificacion == clasificacion) { | |
imprimirPelicula(temporal); // <-- Aquí reusamos la función "imprimirPelicula" | |
} | |
temporal = temporal->siguiente; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment