llvm::emitStpNCpy

Emit a call to stpncpy for the specified pointer arguments and length.

Synopsis

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

Value*
emitStpNCpy(
    Value* Dst,
    Value* Src,
    Value* Len,
    IRBuilderBase& B,
    TargetLibraryInfo const* TLI);

Return Value

The stpncpy call, or null if unavailable.

Parameters

NameDescription
DstDestination buffer pointer.
SrcSource C string pointer.
LenMaximum number of characters to copy.
BIR builder used to create the call.
TLITarget library info describing available libcalls.