2023-07-01 11:58:00 -04:00
|
|
|
const std = @import("std");
|
|
|
|
|
pub fn main() void {
|
|
|
|
|
const string = "Hello,How,Are,You,Today";
|
2025-06-11 20:16:52 -04:00
|
|
|
var tokens = std.mem.splitScalar(u8, string, ',');
|
2023-07-01 11:58:00 -04:00
|
|
|
std.debug.print("{s}", .{tokens.next().?});
|
|
|
|
|
while (tokens.next()) |token| {
|
|
|
|
|
std.debug.print(".{s}", .{token});
|
|
|
|
|
}
|
|
|
|
|
}
|