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 testpdsfilesfunc5 testpdsfilesfunc5.c -lpdsdatafunc
# Test command
./testpdsfilesfunc5
#include <stdio.h>
#include <stdlib.h>
#include <pds/pdsdatafunc.h>
int main(int argc, char* argv[])
{
char *DATA=NULL;
char d;
long int size;
printf("\n");
printf("argv[0] :: %s\n\n",argv[0]);
printf("pds_get_realpath(\".\") :: %s\n\n",DATA);
free(DATA);
printf("pds_get_homedir() :: %s\n\n",DATA);
free(DATA);
printf("pds_get_absolute_dirname() :: %s\n\n",DATA);
free(DATA);
printf("pds_get_absolute_programpath() :: %s\n\n",DATA);
free(DATA);
printf("pds_filesep() :: %c\n\n",d);
printf("pds_get_file_size(argv[0]) :: %ld\n\n",size);
printf("\n");
return EXIT_SUCCESS;
}