1ustrncpy(3) Allegro manual ustrncpy(3)
2
3
4
6 ustrncpy - Copies a string into another one, specifying size. Allegro
7 game programming library.
8
10 #include <allegro.h>
11
12
13 char *ustrncpy(char *dest, const char *src, int n);
14
16 This function is like ustrcpy() except that no more than `n' characters
17 from `src' are copied into `dest'. If `src' is shorter than `n' charac‐
18 ters, null characters are appended to `dest' as padding until `n' char‐
19 acters have been written.
20
21 Note that if `src' is longer than `n' characters, `dest' will not be
22 null-terminated.
23
25 The return value is the value of `dest'.
26
27
29 uconvert(3), ustrcpy(3), ustrzncpy(3)
30
31
32
33Allegro version 4.2.3 ustrncpy(3)