logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

ustrncat - Concatenates a string to another one, specifying size. Allegro game programming library.

Description

       This  function  is  like ustrcat() except that no more than `n' characters from `src' are appended to the
       end of `dest'. If the terminating null character in `src' is reached  before  `n'  characters  have  been
       written, the null character is copied, but no other characters are written. If `n' characters are written
       before  a terminating null is encountered, the function appends its own null character to `dest', so that
       `n+1' characters are written. You should try to avoid this function because it is very easy  to  overflow
       the destination buffer. Use ustrzncat instead.

Name

       ustrncat - Concatenates a string to another one, specifying size. Allegro game programming library.

Return Value

       The return value is the value of `dest'.

See Also

uconvert(3alleg4), ustrcat(3alleg4), ustrzncat(3alleg4)

Allegro                                           version 4.4.3                                ustrncat(3alleg4)

Synopsis

#include<allegro.h>char*ustrncat(char*dest,constchar*src,intn);

See Also