Trying to figure out what the proper way to plug in my data is. Any help? Doing it in the way seen here results in integer without a cast. I've tried this a few ways but never quite got the hand of it.
lzo_bytep SERV_DATA_SEND = "702D31FA78809907133F1256459ABFECA9769AEAB65F3F125658";
in_len = IN_LEN;
lzo_memset(in,SERV_DATA_SEND,strlen(SERV_DATA_SEND));
printf("memset: %s\n\n", in);
To prepare the data in a buffer, you should use
lzo_memcpy(in, SERV_DATA_SEND, strlen(SERV_DATA_SEND)), which accepts chars in its second parameter.In
lzo_memset(), the second parameter accepts an integer.For example, if you want to clear the buffer, you can use the code below. It will set all the blocks to zero.
Check out the overlap.c and simple.c example in http://www.oberhumer.com/opensource/lzo/#download