Liste des Groupes | Revenir à cl c |
On 4/3/25 18:00, Waldek Hebisch wrote:The C23 "typeof" operator lets you work with the type of a value or expression. So you first have an object or value of type "size_t", that's all you need. Unfortunately, there are no convenient literal suffixes that could be used here.Tim Rentsch <tr.17687@z991.linuxsc.com> wrote:...How would you declare a pointer to a function type such that it isNot always practical. A good example is the type size_t. If a>
function takes an argument of type size_t, then the symbol size_t
should be defined, no matter which header the function is being
declared in.
Why? One can use a type without a name for such type.
compatible with such a function's type?
When a variable is needed to store a value that would be passed as the
size_t argument to such a function, I would (in the absence of any
specific reason to do otherwise) want to declare that object to have the
type size_t.
Why should I have to #include a different header just because I want to
do these things?
Les messages affichés proviennent d'usenet.