Programa para el testeo de algunas funciones de la biblioteca <pds/pdsfilesfunc.h> .
- Autor
- Fernando Pujaico Rivera
- Copyright
- GNU Public License.
Este programa solo hace una prueba simple de las funciones que hice mas al tun tun.
# Compilation command
gcc -o testpdsfilesfunc4 testpdsfilesfunc4.c -lpdsdatafunc
# Test command
./testpdsfilesfunc4
#include <stdio.h>
#include <stdlib.h>
#include <pds/pdsdatafunc.h>
char *func(const char *data)
{
char *rep=NULL;
rep=(char*)calloc(32,1);
sprintf(rep,"tango");
return rep;
}
int main(int argc, char* argv[])
{
char *DATA=NULL;
int d;
char FILE_INPUT[] ="filedata.metadata";
char FILE_OUTPUT1[]="filedata.out1.metadata";
char FILE_OUTPUT2[]="filedata.out2.metadata";
printf("\n");
printf("%d\n",d);
printf("\n\n");
printf("%d\n",d);
printf("\n\n");
if(DATA!=NULL) printf("%s\n",DATA);
free(DATA);
printf("\n\n");
printf("\n\n");
printf("\n\n");
printf("\n");
remove(FILE_OUTPUT1);
remove(FILE_OUTPUT2);
return EXIT_SUCCESS;
}