@@ -37,10 +37,14 @@ print :: proc(args: ..any, sep := " ", flush := true) -> int { return wprint(w
3737println :: proc (args: ..any , sep := " " , flush := true ) -> int { return wprintln (w=stdout, args=args, sep=sep, flush=flush) }
3838// printf formats according to the specififed format string and writes to stdout
3939printf :: proc (fmt: string , args: ..any , flush := true ) -> int { return wprintf (stdout, fmt, ..args, flush=flush) }
40+ // printfln formats according to the specified format string and writes to stdout, followed by a newline.
41+ printfln :: proc (fmt: string , args: ..any , flush := true ) -> int { return wprintf (stdout, fmt, ..args, flush=flush, newline=true ) }
4042
4143// eprint formats using the default print settings and writes to stderr
4244eprint :: proc (args: ..any , sep := " " , flush := true ) -> int { return wprint (w=stderr, args=args, sep=sep, flush=flush) }
4345// eprintln formats using the default print settings and writes to stderr
4446eprintln :: proc (args: ..any , sep := " " , flush := true ) -> int { return wprintln (w=stderr, args=args, sep=sep, flush=flush) }
4547// eprintf formats according to the specififed format string and writes to stderr
4648eprintf :: proc (fmt: string , args: ..any , flush := true ) -> int { return wprintf (stderr, fmt, ..args, flush=flush) }
49+ // eprintfln formats according to the specified format string and writes to stderr, followed by a newline.
50+ eprintfln :: proc (fmt: string , args: ..any , flush := true ) -> int { return wprintf (stdout, fmt, ..args, flush=flush, newline=true ) }
0 commit comments