diff --git a/odin/src/main.odin b/odin/src/main.odin index 2b2c461..788488b 100644 --- a/odin/src/main.odin +++ b/odin/src/main.odin @@ -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 ); }