⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 curl_mprintf.3

📁 视频监控网络部分的协议ddns,的模块的实现代码,请大家大胆指正.
💻 3
字号:
.\" $Id: curl_mprintf.3,v 1.3 2004/04/30 08:38:08 bagder Exp $.\".TH curl_printf 3 "30 April 2004" "libcurl 7.12" "libcurl Manual".SH NAMEcurl_maprintf, curl_mfprintf, curl_mprintf, curl_msnprintf, curl_msprintfcurl_mvaprintf, curl_mvfprintf, curl_mvprintf, curl_mvsnprintf,curl_mvsprintf - formatted output conversion.SH SYNOPSIS.B #include <curl/mprintf.h>.sp.BI "int curl_mprintf(const char *" format ", ...);".br.BI "int curl_mfprintf(FILE *" fd ", const char *" format ", ...);".br.BI "int curl_msprintf(char *" buffer ", const char *" format ", ...);".br.BI "int curl_msnprintf(char *" buffer ", size_t " maxlength ", const char *" format ", ...);".br.BI "int curl_mvprintf(const char *" format ", va_list " args ");".br.BI "int curl_mvfprintf(FILE *" fd ", const char *" format ", va_list " args ");".br.BI "int curl_mvsprintf(char *" buffer ", const char *" format ", va_list " args ");".br.BI "int curl_mvsnprintf(char *" buffer ", size_t " maxlength ", const char *" format ", va_list " args ");".br.BI "char *curl_maprintf(const char *" format ", ...);".br.BI "char *curl_mvaprintf(const char *" format ", va_list " args ");".SH DESCRIPTIONThese are all functions that produces output according to a format string andgiven arguments. These are mostly clones of the well-known C-style functionsand there will be no detailed explanation of all available formatting rulesand usage here.See this table for notable exceptions..RS.TP.B curl_mprintf()Normal printf() clone..TP.B curl_mfprintf()Normal fprintf() clone..TP.B curl_msprintf()Normal sprintf() clone..TP.B curl_msnprintf()snprintf() clone. Many systems don't have this. It is just like \fBsprintf\fPbut with an extra argument after the buffer that specifies the length of thetarget buffer..TP.B curl_mvprintf()Normal vprintf() clone..TP.B curl_mvfprintf()Normal vfprintf() clone..TP.B curl_mvsprintf()Normal vsprintf() clone..TP.B curl_mvsnprintf()vsnprintf() clone.  Many systems don't have this. It is just like\fBvsprintf\fP but with an extra argument after the buffer that specifies thelength of the target buffer..TP.B curl_maprintf()Like printf() but returns the output string as a malloc()ed string. Thereturned string must be free()ed by the receiver..TP.B curl_mvaprintf()Like curl_maprintf() but takes a va_list pointer argument instead of avariable amount of arguments..RETo easily use all these cloned functions instead of the normal ones, #define_MPRINTF_REPLACE before you include the <curl/mprintf.h> file. Then all thenormal names like printf, fprintf, sprintf etc will use the curl-functionsinstead..SH AVAILABILITYThese function will be removed from the public libcurl API in a nearfuture. They will instead be made "available" by source code access only, andthen as curlx_-prefixed functions. See lib/README.curlx for further details..SH RETURN VALUEThe \fBcurl_maprintf\fP and \fBcurl_mvaprintf\fP functions return a pointer toa newly allocated string, or NULL it it failed.All other functions return the number of character they actually outputed..SH "SEE ALSO".BR printf "(3), " sprintf "(3), " fprintf "(3), " vprintf "(3) "

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -