Is there a function akin to fprintf but only returns the result of formated string in C?

Posted by httpinterpret on Stack Overflow See other posts from Stack Overflow or by httpinterpret
Published on 2010-05-08T05:58:12Z Indexed on 2010/05/08 6:08 UTC
Read the original article Hit count: 197

Filed under:
|
fprintf(stderr,"Error in pcap_findalldevs: %s\n", errbuf);

I don't want to output anything via fprintf,but only the result of "Error in pcap_findalldevs: %s\n", errbuf,what's the function for that?

© Stack Overflow or respective owner

Related posts about c

    Related posts about string-manipulation