On this page
  1. PRIu64
  2. Include
  3. Signature & Overview
  4. Notes & Pitfalls
  5. Example

PRIu64

Prev: uintptr_t | Up: stdint.h | Next: SIZE_MAX
Rel: stdint.h, stdint, stdbool & limits Guide
Ref: cppreference — PRIu64
Tags: #public #prog #c #stdlib #stdint #tier/core


Include

#include <stdint.h>

Signature & Overview

#include <inttypes.h>  /* PRIu64, PRId64, PRIx64 */

Format specifier macros expanding to the platform-correct printf modifier for 64-bit integers.

Notes & Pitfalls

Example

#include <inttypes.h>
#include <stdio.h>

int main(void) {
    uint64_t big = 10000000000ULL;
    printf("count=%" PRIu64 "\n", big);
}

Linked from

Related notes