Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created November 13, 2020 18:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/63032dfa9459cbdfe852182d23a14c47 to your computer and use it in GitHub Desktop.
Save parzibyte/63032dfa9459cbdfe852182d23a14c47 to your computer and use it in GitHub Desktop.
// Recorre toda la pila de películas y en caso de que encuentre una en la que coincide el nombre, la imprime
void buscarPeliculaPorNombre(char nombre[MAXIMA_LONGITUD_CADENA]) {
printf("\n--Resultados de busqueda por nombre --\n");
struct detalleDePelicula *temporal = superior;
while (temporal != NULL) {
if (strcmp(nombre, temporal->nombre) == 0) {
imprimirPelicula(temporal);
}
temporal = temporal->siguiente;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment