Good morning,
I'm trying to create a library to generate excel files (.xls) in C, but I have no idea how to get sheets, here's the code:
#ifndef SACAEXCEL_H_
#define SACAEXCEL_H_
//cada celda ira separada por una '\t' de la siguiente y por un \n si queremos cambiar de linea
escribirLibro(nombreLibro,datos);
escribirRegistro(nombreLibro,nombreHoja,datos);
escribirLibro(nombreLibro,datos){
FILE *pf;
pf =fopen(nombreLibro,"w");
fprintf(pf,datos);
fclose(pf);
}
escribirRegistro(nombreLibro,nombreHoja,datos){
**Aqui el problema**
}
#endif /* SACAEXCEL_H_ */