Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ This project features a variety of implementations in many programming languages
- [Nim](/Nim.nim)
- [Objective-C](/Objective-C.m)
- [OCaml](/OCaml.ml)
- [Odin](/odin.odin)
- [Pascal](/pascal.pas)
- [Perl](/Perl.pl)
- [PHP](/php.php)
Expand Down
11 changes: 11 additions & 0 deletions odin.odin
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package main

import "core:fmt"
import "core:os"

main :: proc() {
fmt.print("What can I help you with? ")
buf: [256]byte
num_bytes, err := os.read(os.stdin, buf[:])
fmt.println("I'm sorry, I can't assist with it.")
}