uvsprintf(3alleg)

uvsprintf3alleg

Writes formatted data into a buffer, using variable arguments. allegro game programming library.

Usage

#include <allegro.h>

int uvsprintf(char *buf, const char *format, va_list args);

Overview

This is like usprintf(), but you pass the variable argument list directly, instead of the arguments themselves. You can use this function to implement printf like functions, also called variadic functions. You should try to avoid this function because it is very easy to overflow the destination buffer. Use uvszprintf instead.

Return value

Returns the number of characters written, not including the terminating null character.

Releases

4 releases since Debian 3.1 (Sarge); the text changed 2 times.

  1. 3.1
  2. 4.0
  3. 5.0–6.0

From liballegro-doc 2:4.2.2-2.2 in Debian 6.0 (Squeeze). Parsed by carta from the page's man source.