Manual Pages for UNIX Darwin command on man curl_mprintf
MyWebUniversity

Manual Pages for UNIX Darwin command on man curl_mprintf

curlprintf(3) libcurl Manual curlprintf(3)

NAME

curlmaprintf, curlmfprintf, curlmprintf, curlmsnprintf,

curlmsprintf curlmvaprintf, curlmvfprintf, curlmvprintf, curlmvs-

nprintf, curlmvsprintf - formatted output conversion

SYNOPSIS

##iinncclluuddee <>

iinntt ccuurrllmmpprriinnttff((ccoonnsstt cchhaarr **format,, ......));; iinntt ccuurrllmmffpprriinnttff((FFIILLEE **fd,, ccoonnsstt cchhaarr **format,, ......));; iinntt ccuurrllmmsspprriinnttff((cchhaarr **buffer,, ccoonnsstt cchhaarr **format,, ......));; iinntt ccuurrllmmssnnpprriinnttff((cchhaarr **buffer,, ssiizzeett maxlength,, ccoonnsstt cchhaarr **format,, ......));; iinntt ccuurrllmmvvpprriinnttff((ccoonnsstt cchhaarr **format,, vvaalliisstt args));; iinntt ccuurrllmmvvffpprriinnttff((FFIILLEE **fd,, ccoonnsstt cchhaarr **format,, vvaalliisstt args));; iinntt ccuurrllmmvvsspprriinnttff((cchhaarr **buffer,, ccoonnsstt cchhaarr **format,, vvaalliisstt args));; iinntt ccuurrllmmvvssnnpprriinnttff((cchhaarr **buffer,, ssiizzeett maxlength,, ccoonnsstt cchhaarr **format,, vvaalliisstt args));; cchhaarr **ccuurrllmmaapprriinnttff((ccoonnsstt cchhaarr **format,, ......));; cchhaarr **ccuurrllmmvvaapprriinnttff((ccoonnsstt cchhaarr **format,, vvaalliisstt args));;

DESCRIPTION

These are all functions that produces output according to a format

string and given arguments. These are mostly clones of the well-known

C-style functions and there will be no detailed explanation of all

available formatting rules and usage here. See this table for notable exceptions. ccuurrllmmpprriinnttff(()) Normal printf() clone. ccuurrllmmffpprriinnttff(()) Normal fprintf() clone. ccuurrllmmsspprriinnttff(()) Normal sprintf() clone. ccuurrllmmssnnpprriinnttff(()) snprintf() clone. Many systems don't have this. It is just like sspprriinnttff but with an extra argument after the buffer that specifies the length of the target buffer. ccuurrllmmvvpprriinnttff(()) Normal vprintf() clone. ccuurrllmmvvffpprriinnttff(()) Normal vfprintf() clone. ccuurrllmmvvsspprriinnttff(()) Normal vsprintf() clone. ccuurrllmmvvssnnpprriinnttff(()) vsnprintf() clone. Many systems don't have this. It is just like vvsspprriinnttff but with an extra argument after the buffer that specifies the length of the target buffer. ccuurrllmmaapprriinnttff(())

Like printf() but returns the output string as a mal-

loc()ed string. The returned string must be free()ed by the receiver. ccuurrllmmvvaapprriinnttff(()) Like curlmaprintf() but takes a valist pointer argument instead of a variable amount of arguments. To easily use all these cloned functions instead of the normal ones,

#define MPRINTFREPLACE before you include the file.

Then all the normal names like printf, fprintf, sprintf etc will use

the curl-functions instead.

AVAILABILITY These function will be removed from the public libcurl API in a near future. They will instead be made "available" by source code access

only, and then as curlx-prefixed functions. See lib/README.curlx for

further details. RREETTUURRNN VVAALLUUEE The ccuurrllmmaapprriinnttff and ccuurrllmmvvaapprriinnttff functions return a pointer to a newly allocated string, or NULL it it failed.

All other functions return the number of character they actually out-

puted.

SEE ALSO

pprriinnttff(3), sspprriinnttff(3), ffpprriinnttff(3), vvpprriinnttff(3) libcurl 7.12 30 April 2004 curlprintf(3)




Contact us      |      About us      |      Term of use      |       Copyright © 2000-2019 MyWebUniversity.com ™