🌐
MathWorks
mathworks.com › matlab › language fundamentals › data types › characters and strings
sprintf - Format data into string or character vector - MATLAB
Input text without formatting operators, specified as a character vector or string scalar. sprintf translates any escape-character sequences in literalText.
🌐
TutorialsPoint
tutorialspoint.com › c_standard_library › c_function_sprintf.htm
C Library - sprintf() function
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 by the user.
🌐
RDocumentation
rdocumentation.org › packages › base › versions › 3.6.2 › topics › sprintf
sprintf function - RDocumentation
A wrapper for the C function sprintf, that returns a character vector containing a formatted combination of text and variable values.
🌐
PHP
php.net › manual › en › function.sprintf.php
PHP: sprintf - Manual
<?php $num = 5; $location = 'tree'; $format = 'There are %d monkeys in the %s'; echo sprintf($format, $num, $location); ?>
🌐
Perl Documentation
perldoc.perl.org › functions › sprintf
sprintf - Perldoc Browser
Returns a string formatted by the usual printf conventions of the C library function sprintf.
🌐
Campbell Scientific
help.campbellsci.com › crbasic › cr6 › Content › Instructions › sprintf.htm
Sprintf (String Print Formatted)
Sprintf is used to format an output string and store it in a destination variable. It allows you to create well-structured strings by specifying format specifiers for different data types, such as integers, floating-point numbers, and hexadecimal values. For example, you can use Sprintf to ...
🌐
W3Schools
w3schools.com › php › func_string_sprintf.asp
PHP sprintf() Function
The sprintf() function writes a formatted string to a variable.
🌐
GeeksforGeeks
geeksforgeeks.org › c language › sprintf-in-c
sprintf() in C - GeeksforGeeks
January 10, 2025 - sprintf stands for “String print”. Instead of printing on console, it store output on char buffer which are specified in sprintf.
Find elsewhere
🌐
Sternum IoT
sternumiot.com › home › sprintf and snprintf c functions – syntax, examples, and security best practices
sprintf and snprintf C Functions | Syntax, Examples & Security Best Practices| Sternum IoT
June 4, 2023 - What ןs the sprintf() Function In C programming language the sprintf() function is used for formatting strings through the merger of text with variables, numbers, etc. The sprintf() function accepts a format string as its initial argument, ...
🌐
CS50
manual.cs50.io › 3 › sprintf
sprintf - CS50 Manual Pages
The functions in the printf() family produce output according to a format as described below. The functions printf() and vprintf() write output to stdout, the standard output stream; fprintf() and vfprintf() write output to the given output stream; sprintf(), snprintf(), vsprintf(), and vsnprintf() write to the character string str.
🌐
Cycling '74
docs.cycling74.com › max5 › refpages › max-ref › sprintf.html
sprintf Reference
The sprintf object allows you to use the famous C-language "printf" function inside Max. You can combine symbols, organize lists of numbers, or format messages or menu items.
🌐
Milwaukee School of Engineering
faculty-web.msoe.edu › barnekow › includes › sprintf.pdf pdf
sprintf function int sprintf ( char * str, const char * format, ... ); <cstdio>
sprintf · function · int sprintf ( char * str, const char * format, ... ); <cstdio> Write formatted data to string · Writes into the array pointed by str a C string consisting on a sequence of data formatted as the · format argument specifies. After the format parameter, the function expects at least as many ·
🌐
Linux Man Pages
linux.die.net › man › 3 › sprintf
sprintf(3): formatted output conversion - Linux man page
The functions in the printf() family produce output according to a format as described below. The functions printf() and vprintf() write output to stdout, the standard output stream; fprintf() and vfprintf() write output to the given output stream; sprintf(), snprintf(), vsprintf() and vsnprintf() write to the character string str.
🌐
NCL
ncl.ucar.edu › Document › Functions › Built-in › sprintf.shtml
sprintf
function sprintf ( format [1] : string, array : float ; or double ) return_val [dimsizes(array)] : string
🌐
Microsoft Learn
learn.microsoft.com › en-us › cpp › c-runtime-library › reference › sprintf-sprintf-l-swprintf-swprintf-l-swprintf-l
sprintf, _sprintf_l, swprintf, _swprintf_l, __swprintf_l | Microsoft Learn
July 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.
🌐
Arduino Forum
forum.arduino.cc › projects › programming
Sprintf - conversion specifications (%n$) - Programming - Arduino Forum
February 1, 2022 - Dear, In the sprinf conversion specification %n$, n is an integer, e.g. $2$ n is 'hard coded' in the program. I want to use a variable instead to print a variable number of digit to a LCD. I tried to use string and c…
🌐
TechOnTheNet
techonthenet.com › c_language › standard_library_functions › stdio_h › sprintf.php
C Language: sprintf function (Formatted String Write)
In the C Programming Language, the sprintf function writes formatted output to an object pointed to by s.
🌐
Oracle
docs.oracle.com › cd › E88353_01 › html › E37843 › sprintf-3c.html
sprintf - man pages section 3: Basic Library Functions
The sprintf() function places output, followed by the null byte (\0), in consecutive bytes starting at s; it is the user's responsibility to ensure that enough storage is available.