Programa para el testeo de algunas funciones de la biblioteca.
- 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 testpdsstring2 testpdsstring2.c -lpdsdatafunc
# Test command
./testpdsstring2
#include <stdio.h>
#include <stdlib.h>
#include <pds/pdsdatafunc.h>
int main(int argc, char* argv[])
{
char str[]="hola <b>Fernando</b> como está <b>trucomanx</b> y <b></b>";
char *str_ptr=str;
char *rawdata=NULL;
printf("\n");
do{
printf("str_ptr :%s\n",str_ptr);
if(rawdata!=NULL) printf("rawdata[%s]\n\n",rawdata);
free(rawdata);
}while(str_ptr!=NULL);
return EXIT_SUCCESS;
}