| ... | @@ -4,7 +4,6 @@ const common = @import("common.zig"); | ... | @@ -4,7 +4,6 @@ const common = @import("common.zig"); |
| 4 | | 4 | |
| 5 | comptime { | 5 | comptime { |
| 6 | @export(&strcmp, .{ .name = "strcmp", .linkage = common.linkage, .visibility = common.visibility }); | 6 | @export(&strcmp, .{ .name = "strcmp", .linkage = common.linkage, .visibility = common.visibility }); |
| 7 | @export(&strlen, .{ .name = "strlen", .linkage = common.linkage, .visibility = common.visibility }); | | |
| 8 | @export(&strncmp, .{ .name = "strncmp", .linkage = common.linkage, .visibility = common.visibility }); | 7 | @export(&strncmp, .{ .name = "strncmp", .linkage = common.linkage, .visibility = common.visibility }); |
| 9 | @export(&strcasecmp, .{ .name = "strcasecmp", .linkage = common.linkage, .visibility = common.visibility }); | 8 | @export(&strcasecmp, .{ .name = "strcasecmp", .linkage = common.linkage, .visibility = common.visibility }); |
| 10 | @export(&strncasecmp, .{ .name = "strncasecmp", .linkage = common.linkage, .visibility = common.visibility }); | 9 | @export(&strncasecmp, .{ .name = "strncasecmp", .linkage = common.linkage, .visibility = common.visibility }); |
| ... | @@ -103,7 +102,3 @@ test strncmp { | ... | @@ -103,7 +102,3 @@ test strncmp { |
| 103 | try std.testing.expect(strncmp(@ptrCast("b"), @ptrCast("a"), 1) > 0); | 102 | try std.testing.expect(strncmp(@ptrCast("b"), @ptrCast("a"), 1) > 0); |
| 104 | try std.testing.expect(strncmp(@ptrCast("\xff"), @ptrCast("\x02"), 1) > 0); | 103 | try std.testing.expect(strncmp(@ptrCast("\xff"), @ptrCast("\x02"), 1) > 0); |
| 105 | } | 104 | } |
| 106 | | | |
| 107 | fn strlen(s: [*:0]const c_char) callconv(.c) usize { | | |
| 108 | return std.mem.len(s); | | |
| 109 | } | | |