# lv_sprintf.h (/api/stdlib/lv_sprintf_h)



<ApiSummary functions="2" macros="8" />

Functions [#functions]

<ApiMember kind="function" name="lv_snprintf" file="stdlib/lv_sprintf.h" line="52" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/stdlib/lv_sprintf.h#L52">
  lv_snprintf [#lv_snprintf]

  ```c title=" " lineNumbers=1
  int lv_snprintf(char *buffer, size_t count, const char *format,...)
  ```

  <span className="sr-only">
    Parameters
  </span>

  | Name     | Type                      |
  | -------- | ------------------------- |
  | `buffer` | `char *`                  |
  | `count`  | <ApiLink name="size_t" /> |
  | `format` | `const char *`            |
  | `...`    |                           |
</ApiMember>

<ApiMember kind="function" name="lv_vsnprintf" file="stdlib/lv_sprintf.h" line="54" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/stdlib/lv_sprintf.h#L54">
  lv_vsnprintf [#lv_vsnprintf]

  ```c title=" " lineNumbers=1
  int lv_vsnprintf(char *buffer, size_t count, const char *format, va_list va)
  ```

  <span className="sr-only">
    Parameters
  </span>

  | Name     | Type                      |
  | -------- | ------------------------- |
  | `buffer` | `char *`                  |
  | `count`  | <ApiLink name="size_t" /> |
  | `format` | `const char *`            |
  | `va`     | `va_list`                 |
</ApiMember>

Macros [#macros]

<ApiMember kind="macro" name="LV_PRId32" file="stdlib/lv_sprintf.h" line="35" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/stdlib/lv_sprintf.h#L35">
  LV_PRId32 [#lv_prid32]

  ```c title=" " lineNumbers=1
  #define LV_PRId32 "d"
  ```
</ApiMember>

<ApiMember kind="macro" name="LV_PRIu32" file="stdlib/lv_sprintf.h" line="36" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/stdlib/lv_sprintf.h#L36">
  LV_PRIu32 [#lv_priu32]

  ```c title=" " lineNumbers=1
  #define LV_PRIu32 "u"
  ```
</ApiMember>

<ApiMember kind="macro" name="LV_PRIx32" file="stdlib/lv_sprintf.h" line="37" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/stdlib/lv_sprintf.h#L37">
  LV_PRIx32 [#lv_prix32]

  ```c title=" " lineNumbers=1
  #define LV_PRIx32 "x"
  ```
</ApiMember>

<ApiMember kind="macro" name="LV_PRIX32" file="stdlib/lv_sprintf.h" line="38" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/stdlib/lv_sprintf.h#L38">
  LV_PRIX32 [#lv_prix32-1]

  ```c title=" " lineNumbers=1
  #define LV_PRIX32 "X"
  ```
</ApiMember>

<ApiMember kind="macro" name="LV_PRId64" file="stdlib/lv_sprintf.h" line="40" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/stdlib/lv_sprintf.h#L40">
  LV_PRId64 [#lv_prid64]

  ```c title=" " lineNumbers=1
  #define LV_PRId64 "lld"
  ```
</ApiMember>

<ApiMember kind="macro" name="LV_PRIu64" file="stdlib/lv_sprintf.h" line="41" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/stdlib/lv_sprintf.h#L41">
  LV_PRIu64 [#lv_priu64]

  ```c title=" " lineNumbers=1
  #define LV_PRIu64 "llu"
  ```
</ApiMember>

<ApiMember kind="macro" name="LV_PRIx64" file="stdlib/lv_sprintf.h" line="42" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/stdlib/lv_sprintf.h#L42">
  LV_PRIx64 [#lv_prix64]

  ```c title=" " lineNumbers=1
  #define LV_PRIx64 "llx"
  ```
</ApiMember>

<ApiMember kind="macro" name="LV_PRIX64" file="stdlib/lv_sprintf.h" line="43" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/stdlib/lv_sprintf.h#L43">
  LV_PRIX64 [#lv_prix64-1]

  ```c title=" " lineNumbers=1
  #define LV_PRIX64 "llX"
  ```
</ApiMember>

Dependencies [#dependencies]

<FileIncludes includes="[&#x22;lv_types.h&#x22;]" includedBy="[&#x22;lv_text.h&#x22;]" transitiveIncludes="[&#x22;lv_conf_internal.h&#x22;, &#x22;lv_conf_kconfig.h&#x22;]" />
