DoxigAlpha

set

Asserts that the length is less than or equal to 255 bytes.

Function parameters

Parameters

#
dl:*DynamicLinker
maybe_path:?[]const u8

Type definitions in this namespace

Types

#

Functions in this namespace

Functions

#
requiresLibC
Does this target require linking libc? This may be the case if the target has an unstable
cCharSignedness
Default signedness of `char` for the native C compiler for this target

Source

Implementation

#
pub fn set(dl: *DynamicLinker, maybe_path: ?[]const u8) void {
    const path = maybe_path orelse "";
    @memcpy(dl.buffer[0..path.len], path);
    dl.len = @intCast(path.len);
}