added credit

This commit is contained in:
Simon Kellet 2025-03-28 17:59:42 +00:00
parent cc8136fb53
commit aa5aac1da6
2 changed files with 3 additions and 1 deletions

View File

@ -10,7 +10,8 @@ import "core:os"
import "core:unicode/utf8"
print_usage :: proc() {
fmt.printf("Usage:\n\t%s [city] [code] [api_key] \n", os.args[0])
fmt.printfln("Usage:\n\t%s [city] [code] [api_key] \n", os.args[0])
fmt.printfln("Written by Simon 2025")
os.exit(1)
}
@ -51,6 +52,7 @@ curl_web :: proc(url: string) -> []u8 {
write_callback :: proc "c" (contents: rawptr, size: uint, nmemb: uint, userp: rawptr) -> uint {
dc := transmute(^DataContext)userp
context = dc.ctx
total_size := size * nmemb

BIN
weather

Binary file not shown.