About 41,900 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 · Syntax: ... Return: ... sprintf stands for “String print”. Instead of printing on console, it store output on char buffer which are specified in sprintf.

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

    Loads the data from the given locations, converts them to character string equivalents and writes the results to a variety of sinks/streams: 1) Writes the results to the output stream stdout. 2) Writes the …

  4. sprintf - C++ Users

    int sprintf ( char * str, const char * format, ... ); The size of the buffer should be large enough to contain the entire resulting string (see snprintf for a safer version). A terminating null character is …

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

    Jul 2, 2025 · The sprintf function formats and stores a series of characters and values in buffer. Each argument (if any) is converted and output according to the corresponding format specification in format.

  6. C stdio sprintf () Function - W3Schools

    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.

  7. sprintf (3): formatted output conversion - Linux man page

    The functions vprintf (), vfprintf (), vsprintf (), vsnprintf () are equivalent to the functions printf (), fprintf (), sprintf (), snprintf (), respectively, except that they are called with a va_list instead of a variable …

  8. C Language: sprintf function (Formatted String Write) - TechOnTheNet

    In the C Programming Language, the sprintf function writes formatted output to an object pointed to by s.

  9. 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.

  10. sprintf () Function - C stdio.h - Syntax, Examples

    The sprintf () function in C stdio.h writes formatted data into a string buffer. It behaves similarly to printf () by formatting the data as specified, but instead of printing the result to the console, it stores the …