(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:os"
import "core:fmt" import "core:fmt"
import "core:math"
main :: proc() main :: proc()
{ {
if 1 >= len( os.args ) do return; test: string = "heloo";
switch os.args[ 1 ] length: int = len( test );
{ digits: int = int( math.log10( f32( length ) ) );
case `push`:
fmt.println( "push stuff around" ); digits = 3;
case `pop`: fmt.printfln( "% *d : %s", digits, length, test );
fmt.println( "pop the balloos" );
}
} }