1ustrncat(3) Allegro manual ustrncat(3)
2
3
4
6 ustrncat - Concatenates a string to another one, specifying size. Alle‐
7 gro game programming library.
8
10 #include <allegro.h>
11
12
13 char *ustrncat(char *dest, const char *src, int n);
14
16 This function is like ustrcat() except that no more than `n' characters
17 from `src' are appended to the end of `dest'. If the terminating null
18 character in `src' is reached before `n' characters have been written,
19 the null character is copied, but no other characters are written. If
20 `n' characters are written before a terminating null is encountered,
21 the function appends its own null character to `dest', so that `n+1'
22 characters are written. You should try to avoid this function because
23 it is very easy to overflow the destination buffer. Use ustrzncat
24 instead.
25
27 The return value is the value of `dest'.
28
29
31 uconvert(3), ustrcat(3), ustrzncat(3)
32
33
34
35Allegro version 4.2.2 ustrncat(3)