setFmt
Asserts that the length is less than or equal to 255 bytes.
Function parameters
Parameters
- dl:*DynamicLinker
- fmt_str:[]const u8
- args:anytype
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 setFmt(dl: *DynamicLinker, comptime fmt_str: []const u8, args: anytype) !void {
dl.len = @intCast((try std.fmt.bufPrint(&dl.buffer, fmt_str, args)).len);
}