delorie.com/djgpp/doc/libc/libc_737.html   search  
libc.a reference

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

sprintf

Syntax

 
#include <stdio.h>

int sprintf(char *buffer, const char *format, ...);

Description

Sends formatted output from the arguments (...) to the buffer. See section printf.

To avoid buffer overruns, it is safer to use snprintf() (see section snprintf).

Return Value

The number of characters written.

Portability

ANSI/ISO C C89; C99
POSIX 1003.2-1992; 1003.1-2001


  webmaster     delorie software   privacy  
  Copyright © 2004     Updated Apr 2004