added credit
This commit is contained in:
parent
cc8136fb53
commit
aa5aac1da6
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user