About 41,400 results
Open links in new tab
  1. sprintf () function - C Library

    The C Library sprintf() function allows you to create strings with specified formats, similar to printf(), but instead of printing to the standard output, it stores the resulting string in a character array provided …

  2. sprintf () in C - GeeksforGeeks

    Jan 10, 2025 · Your All-in-One Learning Portal: GeeksforGeeks is a comprehensive educational platform that empowers learners across domains-spanning computer science and programming, school …

  3. printf, fprintf, sprintf, snprintf, printf_s, fprintf_s, sprintf_s ...

    any of the arguments corresponding to %s is a null pointer stream or format or buffer is a null pointer bufsz is zero or greater than RSIZE_MAX encoding errors occur in any of string and character …

  4. C stdio sprintf () Function - W3Schools

    Definition and Usage The sprintf() function writes a formatted string followed by a \0 null terminating character into a char array. The sprintf() function is defined in the <stdio.h> header file. The format …

  5. sprintf - C++ Users

    Composes a string with the same text that would be printed if format was used on printf, but instead of being printed, the content is stored as a C string in the buffer pointed by str. The size of the buffer …

  6. sprintf, _sprintf_l, swprintf, _swprintf_l, __swprintf_l | Microsoft Learn

    Jul 2, 2025 · Write formatted data to a string. More secure versions of some of these functions are available; see sprintf_s, _sprintf_s_l, swprintf_s, _swprintf_s_l. The secure versions of swprintf and …

  7. std::printf, std::fprintf, std::sprintf, std::snprintf - cppreference.com

    If a call to sprintf or snprintf causes copying to take place between objects that overlap, the behavior is undefined (e.g. sprintf(buf, "%s text", buf);).

  8. sprintf () in C: Complete Guide to String Formatting - Markaicode

    Oct 31, 2024 · Learn how to use sprintf() in C with practical examples and best practices. Master string formatting, avoid common pitfalls, and write more efficient code.

  9. C sprintf Tutorial: Master String Formatting with Practical Examples

    Apr 6, 2025 · The sprintf function is a powerful tool for this purpose, but requires careful use to avoid buffer overflows. This tutorial explains sprintf in depth, demonstrates its usage, and shows safer …

  10. sprintf (3p) - Linux manual page - man7.org

    PROLOG top This manual page is part of the POSIX Programmer's Manual. The Linux implementation of this interface may differ (consult the corresponding Linux manual page for details of Linux …