summaryrefslogtreecommitdiffstats
path: root/pcilib/xml.c
diff options
context:
space:
mode:
authorzilio nicolas <nicolas.zilio@kit.edu>2015-08-27 16:26:48 +0200
committerzilio nicolas <nicolas.zilio@kit.edu>2015-08-27 16:26:48 +0200
commit04b33df0407e03175a56096cb7ff79a56bea9e88 (patch)
tree889e9655658a77cf18d04ebba9e9ec6662e11da0 /pcilib/xml.c
parentd2ec5ac52105c526390d8a31e52a7a2c260dde80 (diff)
downloadpcitool-04b33df0407e03175a56096cb7ff79a56bea9e88.tar.gz
pcitool-04b33df0407e03175a56096cb7ff79a56bea9e88.tar.bz2
pcitool-04b33df0407e03175a56096cb7ff79a56bea9e88.tar.xz
pcitool-04b33df0407e03175a56096cb7ff79a56bea9e88.zip
some cleaning
Diffstat (limited to 'pcilib/xml.c')
-rw-r--r--pcilib/xml.c36
1 files changed, 0 insertions, 36 deletions
diff --git a/pcilib/xml.c b/pcilib/xml.c
index 203b147..482ab25 100644
--- a/pcilib/xml.c
+++ b/pcilib/xml.c
@@ -111,7 +111,6 @@ xmlSchemaFreeValidCtxt(ctxt);
xmlFreeDoc(doc);
}
-//! free the resource
if(schema != NULL)
xmlSchemaFree(schema);
xmlSchemaCleanupTypes();
@@ -654,41 +653,6 @@ while(docs[count]!=NULL){
}
}
-
-
-
-/** pcilib_xml_read_config
- *
- * function to get the config we want at line j, in order to be able to have a configuration file with pwd to files we want
-* @param[in,out] xmlfile the string representating a pwd to a file we want to access in:uninitilized out: the pwd.
-* @param[in] i the line at which the function should read the file to get the pwd.
- */
-void pcilib_xml_read_config(char** xmlfile, int j){
- FILE *fp;
-
- fp=fopen("config.txt","r");
- char line[60];
- memset(line,'\0',60);
- int i=0,k;
- char *temp1;
- if(fp==NULL) pcilib_error("can't find the configuration file: it must be near the executable");
-
- while(fgets(line,60,fp)!=NULL){
- if(i==j) {
- k=0;
- temp1=calloc((strlen(line)),sizeof(char));
- while(line[k]!='\n'){
- temp1[k]=line[k];
- k++;
- }
- temp1[k]='\0';
- *xmlfile=temp1;
- }
- i++;
- memset(line,'\0',60);
- }
-}
-
#ifdef VIEW_OK
/* pcilib_xml_getnumberformulaviews
*