About 51 results
Open links in new tab
  1. c - Is the %zu specifier required for printf? - Stack Overflow

    If size_t exists shouldn't zu also be available in printf? size_t existed at least since C89 but the respective format specifier %zu (specifically the length modifier z) was added to the standard only …

  2. Correct printf format specifier for size_t: %zu or %Iu?

    Mar 25, 2013 · Does VS2013 actually support %zu? Isn’t it only available since VS2015? The VS2013 documentation for printf size specifiers says %z is not supported, and the link in this answer leads to …

  3. printf - Difference between %zu and %lu in C - Stack Overflow

    Jul 29, 2022 · What is the difference between %zu and %lu in string formatting in C? %lu is used for unsigned long values and %zu is used for size_t values, but in practice, size_t is just an unsigned long.

  4. Is using %zu correct syntax in a printf format string as shown in some ...

    Is using %zu correct syntax in a printf format string as shown in some C code found on Wikipedia? Asked 15 years, 7 months ago Modified 4 months ago Viewed 3k times

  5. How to get MinGW GCC to recognize the %zu format specifier for size_t?

    Aug 23, 2021 · Apparently %zu is handled as not supported, which might not be necessarily true. (A quick check with MinGW64's GCC 8.1.0 on Windows 10 shows the warning, but works.) However, …

  6. What's the correct way to use printf to print a size_t?

    Jun 2, 2009 · size_t is defined as an unsigned integer, but the size of it depends on whether you're on a 32- or 64-bit machine. What's a correct and portable way to print out a size_t?

  7. c - Proper way to scanf and printf a size_t variable (platform ...

    Dec 25, 2016 · %zu for size_t, with %z for length, and %u for unsigned Details can be found at 7.21.6.1 The fprintf function 6 The flag characters and their meanings are: ... z Specifies that a following d, i, …

  8. Platform independent size_t Format specifiers in c?

    Jan 24, 2010 · I want to print out a variable of type size_t in C but it appears that size_t is aliased to different variable types on different architectures. For example, on one machine (64-bit) the following …

  9. Correct format specifier for return value of sizeof () in C

    You're trying to print the return value of sizeof operator, which is usually of type size_t. It appears, in your case, size_t is a typedef of long unsigned int, so it demands it's compatible format specifier %lu …

  10. Zynq Ultrascale (ZU3+) failing SD card init/ident process ...

    Mar 16, 2023 · We have an embedded system that uses a Zynq Ultra Scale (Zu3+) and a microSD card interface. The Zynq project is setup for 3.3V IO using SD 2.0 standards no level shifters. Our …