MySQL 9.0.0
Source Code Documentation
ut0mem.cc File Reference

Memory primitives. More...

#include "ut0mem.h"
#include <stdlib.h>
#include "os0thread.h"
#include "srv0srv.h"

Functions

ulint ut_strlcpy (char *dst, const char *src, ulint size)
 Copies up to size - 1 characters from the NUL-terminated string src to dst, NUL-terminating the result. More...
 
char * ut_str3cat (const char *s1, const char *s2, const char *s3)
 

Detailed Description

Memory primitives.

Created 5/11/1994 Heikki Tuuri

Function Documentation

◆ ut_str3cat()

char * ut_str3cat ( const char *  s1,
const char *  s2,
const char *  s3 
)

◆ ut_strlcpy()

ulint ut_strlcpy ( char *  dst,
const char *  src,
ulint  size 
)

Copies up to size - 1 characters from the NUL-terminated string src to dst, NUL-terminating the result.

Returns strlen(src), so truncation occurred if the return value >= size.

Returns
strlen(src)
Parameters
dstin: destination buffer
srcin: source buffer
sizein: size of destination buffer