Stack Overflow Asked by Ari Sweedler on January 1, 2022
fprintf
means "[f]ile [print] [f]ormatted".
For the StringCchPrint*
family (https://docs.microsoft.com/en-us/windows/win32/api/strsafe/nf-strsafe-stringcchprintfa), I can’t find anything mentioning [Cch].
I know that the A
suffix denotes char
, the f
suffix denotes TCHAR (text char? which appears to be what they want the deafult data type to be for this type of stuff?) and W
denotes WCHAR (wide char?)
I have no experience with windows naming conventions, this is confusing.
The (lowercase) "ch" part of the names refers to the fact that these functions take a count of characters as their relevant argument(s), as opposed to the related functions with a "b" in their names (such as StringCbPrintf
), which take a count of bytes. (These counts are different when using UNICODE
builds, where the strings are formed of 2-byte wchar_t
elements.)
Further, as pointed out by dxiv, the uppercase "C" stands for "count" - which is similar to the Microsoft naming convention for structure members that are 'counts', such as .cbSize
or .cchLength
.
Answered by Adrian Mole on January 1, 2022
1 Asked on February 25, 2021 by swiftpunk
0 Asked on February 25, 2021 by user14014310
0 Asked on February 25, 2021 by user1081544
1 Asked on February 25, 2021 by random
1 Asked on February 25, 2021 by sai-sagar-seru
1 Asked on February 25, 2021 by atay-hassan
4 Asked on February 24, 2021 by jjmerelo
1 Asked on February 24, 2021 by userhex
cross domain lets encrypt lets encrypt webapp renewer ssl vestacp
2 Asked on February 24, 2021 by france
1 Asked on February 24, 2021 by bazron
0 Asked on February 24, 2021 by daniel-tang
2 Asked on February 24, 2021 by indrajith-ekanayake
2 Asked on February 24, 2021 by tendaim
1 Asked on February 24, 2021 by ren-van-den-berg
1 Asked on February 24, 2021 by george-z
1 Asked on February 23, 2021 by nitish-kumar
1 Asked on February 23, 2021 by eric-yiu
1 Asked on February 23, 2021 by lucid
3 Asked on February 23, 2021 by shane
Get help from others!
Recent Answers
Recent Questions
© 2023 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, MenuIva, UKBizDB, Menu Kuliner, Sharing RPP, SolveDir