(odin) printf test

This commit is contained in:
root committed 2026-10-19 16:53:04 +02:00
1 parent 403d5d687e
commit 58c8b518c8
1 file changed
+7 -8
+7 -8
View File
@@ -2,15 +2,14 @@ package test_project
import "core:os"
import "core:fmt"
import "core:math"
main :: proc()
{
if 1 >= len( os.args ) do return;
switch os.args[ 1 ]
{
case `push`:
fmt.println( "push stuff around" );
case `pop`:
fmt.println( "pop the balloos" );
}
test: string = "heloo";
length: int = len( test );
digits: int = int( math.log10( f32( length ) ) );
digits = 3;
fmt.printfln( "% *d : %s", digits, length, test );
}