![]() |
![]() |
![]() |
Concatenate one string on to the end of another
#include <string.h> int straddstr( const char * str, int len, char ** pbuf, size_t * pmaxbuf );
libc
The straddstr() function adds str to the buffer pointed to by pbuf, respecting the maximum length indicated by pmaxbuf. The values of pbuf and pmaxlen are also updated.
The arguments are as follows:
If nonzero, len; otherwise, the number of characters attempted to be added (i.e. strlen(str)).
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | Yes |
Signal handler | Yes |
Thread | Yes |
strcat(), strcpy(), strncat(), strncpy()
![]() |
![]() |
![]() |