Hi everyone!

I'm trying to print a hex string into a buffer with the function
realloc_format_trap. But I do not want linebreaks at all in the output.

At the moment, I'm using:
netsnmp_ds_set_int(NETSNMP_DS_LIBRARY_ID, NETSNMP_DS_LIB_HEX_OUTPUT_LENGTH,
2048);
At the first of my program. However, this forces me to alloc a huge memory
foreach line, and it has the (unlikely) possibility that a line with more
than 2048 octects. Using sprint_realloc_hextring, (I think) there is no way
to bypass the linebreak print. Is there another function or something I can
use to achieve that?

Thanks and regards.
------------------------------------------------------------------------------
Start Your Social Network Today - Download eXo Platform
Build your Enterprise Intranet with eXo Platform Software
Java Based Open Source Intranet - Social, Extensible, Cloud Ready
Get Started Now And Turn Your Intranet Into A Collaboration Platform
http://p.sf.net/sfu/ExoPlatform
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to