Add more context to Format etc documentation (#2079)

This commit is contained in:
sappho 2023-11-06 11:07:00 -05:00 committed by GitHub
parent 4b2d8b53fa
commit d4da21b07f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -140,7 +140,8 @@ stock int StrCopy(char[] dest, int destLen, const char[] source)
* Formats a string according to the SourceMod format rules (see documentation).
*
* @param buffer Destination string buffer.
* @param maxlength Maximum length of output string buffer.
* @param maxlength Maximum length of output string buffer,
* including the null terminator.
* @param format Formatting rules.
* @param ... Variable number of format parameters.
* @return Number of characters written to the buffer,
@ -155,7 +156,8 @@ native int Format(char[] buffer, int maxlength, const char[] format, any ...);
* check is removed, it is slightly faster.
*
* @param buffer Destination string buffer.
* @param maxlength Maximum length of output string buffer.
* @param maxlength Maximum length of output string buffer,
* including the null terminator.
* @param format Formatting rules.
* @param ... Variable number of format parameters.
* @return Number of characters written to the buffer,
@ -170,7 +172,8 @@ native int FormatEx(char[] buffer, int maxlength, const char[] format, any ...);
* implementing your own variable argument functions.
*
* @param buffer Destination string buffer.
* @param maxlength Maximum length of output string buffer.
* @param maxlength Maximum length of output string buffer,
* including the null terminator.
* @param format Formatting rules.
* @param varpos Argument number which contains the '...' symbol.
* Note: Arguments start at 1.