Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does sprintf stand for?

Tags:

I tried looking it up on google and wikipedia but couldn't find an answer... Does anyone know what 'sprintf' or 'printf' stands for? Is it an abbreviation for something???

Thanks

like image 963
Mark Avatar asked Feb 19 '10 23:02

Mark


People also ask

What does the S in sprintf stand for?

"printf" is the name of one of the main C output functions, and stands for "print formatted". printf format strings are complementary to scanf format strings, which provide formatted input (lexing aka.

What is the purpose of sprintf ()?

The sprintf() function writes a formatted string to a variable.

What does sprintf return in C?

The sprintf() function returns the number of bytes that are written in the array, not counting the ending null character.

What is the difference between printf and sprintf?

The printf function formats and writes output to the standard output stream, stdout . The sprintf function formats and stores a series of characters and values in the array pointed to by buffer. Any argument list is converted and put out according to the corresponding format specification in format.


1 Answers

String PRINT Format(ed).

I.e. print to string using a given format.

like image 73
David Kanarek Avatar answered Oct 02 '22 15:10

David Kanarek