ustrncpy(3alleg)

ustrncpy3alleg

Copies a string into another one, specifying size. allegro game programming library.

Usage

#include <allegro.h>

char *ustrncpy(char *dest, const char *src, int n);

Overview

This function is like ustrcpy() except that no more than `n' characters from `src' are copied into `dest'. If `src' is shorter than `n' characters, null characters are appended to `dest' as padding until `n' characters have been written.

Note that if `src' is longer than `n' characters, `dest' will not be null-terminated.

Return value

The return value is the value of `dest'.

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.