I want the data entered from the "Books" structure to be directly capitalized. I know we have to use the toupper () function but I do not know how to apply it when I work with structures.
#include<stdio.h>
#include<string.h>
#include<conio.h>
//Estructura del libro.
typedef struct{
char titulo[100];
char genero[100];
int paginas;
int anio_de_edicion;
char numero_isbn[100];
char editorial[100];
}Libros;
//Funcion para datos del libros.
void alta(Libros * libros){
fflush(stdin);
printf("Titulo: ");
gets(libros->titulo);
printf("genero: ");
gets(libros->genero);
printf("paginas: ");
scanf("%d", &libros->paginas);
printf("año de edicion: ");
scanf("%d", &libros->anio_de_edicion);
fflush(stdin);
printf("numero isbn: ");
gets(libros->numero_isbn);
printf("editorial: ");
gets(libros->editorial);
}