Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - sprintf((INT8 *)NO," %。 *s”,iRet,sBuff);
sprintf((INT8 *)NO," %。 *s”,iRet,sBuff);
Sprintf is used to format and print a string to a specified address (usually an array of characters).

(INT8 *)NO: pointer (address) (specify the target address of the string)

"%.*s": format specifier, where * is a wildcard, corresponding to iRet, and iRet is an integer, indicating the maximum number of characters to be printed.

SBuff: corresponding to %s, it is the first address of the string to be printed, and it is probably the name of the string array.

PS: Baidu Encyclopedia has a usage introduction, so I'm sorry to copy it. Here is the address. You can go and have a look for yourself. The usage and examples are very detailed.

/view/ 1295 144.htm