Our website uses cookies to enhance your browsing experience.
Accept
to the top
close form

Fill out the form in 2 simple steps below:

Your contact information:

Step 1
Congratulations! This is your promo code!

Desired license type:

Step 2
Team license
Enterprise license
** By clicking this button you agree to our Privacy Policy statement
close form
Request our prices
New License
License Renewal
--Select currency--
USD
EUR
* By clicking this button you agree to our Privacy Policy statement

close form
Free PVS‑Studio license for Microsoft MVP specialists
* By clicking this button you agree to our Privacy Policy statement

close form
To get the licence for your open-source project, please fill out this form
* By clicking this button you agree to our Privacy Policy statement

close form
I am interested to try it on the platforms:
* By clicking this button you agree to our Privacy Policy statement

close form
check circle
Message submitted.

Your message has been sent. We will email you at


If you do not see the email in your inbox, please check if it is filtered to one of the following folders:

  • Promotion
  • Updates
  • Spam

Webinar: Evaluation - 05.12

>
>
>
Rsize_t

rsize_t

Nov 15 2024

The 'rsize_t' is an unsigned integer type and is very similar to the type size_t.

The 'size_t' type is a result of the 'sizeof' operator. Variables of the 'size_t' type are guaranteed to have enough capacity to store the size of any object or array of objects. The largest value such a variable can store is SIZE_MAX. The 'size_t' type can also be used to store an address.

The 'rsize_t' type is a synonym of 'size_t' but it is designed to store the size of a single object. In other words, by using the 'rsize_t' type the programmer emphasizes that he is handling the size of one single object. Its maximum size is specified by the RSIZE_MAX constant.

The RSIZE_MAX constant can also be used to check the values of the arguments passed into a function: if a function receives an object size as one of the arguments, this value cannot be larger than RSIZE_MAX.

References:

Popular related articles


Comments (0)

Next comments next comments
close comment form