llvm::emitStrLCpy

Emit a call to the strlcpy function.

Synopsis

Declared in <llvm/Transforms/Utils/BuildLibCalls.h>

Value*
emitStrLCpy(
    Value* Dest,
    Value* Src,
    Value* Size,
    IRBuilderBase& B,
    TargetLibraryInfo const* TLI);

Return Value

The strlcpy call, or null if unavailable.

Parameters

NameDescription
DestDestination buffer pointer.
SrcSource C string pointer.
SizeSize of the destination buffer.
BIR builder used to create the call.
TLITarget library info describing available libcalls.