void STRM_BEGIN(char *buf_name)
void STRM(const char *src, ...)
void STRM_END
STRM macros provide a simple C-style strings streaming.
There can only be one stream at a time per process.
None
/* build an API request */ char req[4096]; STRM_BEGIN(req); STRM("p24_merchant_id=%d", P24_MERCHANT_ID); STRM("&p24_pos_id=%d", P24_POS_ID); STRM("&p24_session_id=%d", p24_session_id); STRM("&p24_amount=%d", p24_amount); STRM("&p24_currency=GBP"); STRM("&p24_description=%s", urlencode(p24_description)); STRM("&p24_email=%s", urlencode(p24_email)); STRM("&p24_crc=%s", P24_CRC); STRM("&p24_country=GB"); STRM("&p24_api_version=3.2"); STRM("&p24_sign=%s", signature); STRM_END;
Not thread-safe, no destination size checking.
There was an error while loading. Please reload this page.