Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ () — Coherent 3.1.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought


sprintf()                     STDIO                     sprintf()




Format output

#include <stdio.h>
int sprintf(string, format [ , arg ] ...)
char *string, *format;

sprintf formats  and prints a string.   It resembles the function
printf, except that it writes its output into the memory location
pointed to by string, instead of to the standard output.

sprintf reads the string pointed  to by format to specify an out-
put format  for each arg;  it then writes every  arg into string,
which it  ends with a null character.   For a detailed discussion
of sprintf's formatting codes, see printf.

***** Example *****

For an example of this function, see the entry for sscanf.

***** See Also *****

printf(), fprintf(), STDIO

***** Notes *****

The output string passed to  sprintf must be large enough to hold
all output characters.

Because C  does not perform type checking,   it is essential that
each argument match its format specification.

At present, sprintf does not return a meaningful value.
























COHERENT Lexicon                                           Page 1


Typewritten Software • bear@typewritten.org • Edmonds, WA 98026