mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Use printn rather than println. Add string methods for copying.
This commit is contained in:
committed by
Christoffer Lerno
parent
6b928c7a3d
commit
dce171670f
@@ -3,7 +3,7 @@ import regex, stdio;
|
||||
|
||||
fn void main()
|
||||
{
|
||||
println("Enter a story template, terminated by an empty line:");
|
||||
printn("Enter a story template, terminated by an empty line:");
|
||||
VarString story = "";
|
||||
while (1)
|
||||
{
|
||||
@@ -25,5 +25,5 @@ fn void main()
|
||||
story = story.replace(s, word);
|
||||
}
|
||||
|
||||
println("\nThe story becomes:\n%s\n", story);
|
||||
printn("\nThe story becomes:\n%s\n", story);
|
||||
}
|
||||
Reference in New Issue
Block a user