This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#define SIZE(arr) (sizeof(arr) / sizeof((arr)[0])) | |
void arr_iter(const short[], short); | |
void in_place_mod(short[], short, unsigned int); | |
int main(void) { | |
short numsArr[] = {1, 2, 3, 4}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Just a way to host my images... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// [dependencies] | |
// async-std = { version = "1.7.0", features = ["unstable"]} | |
// surf = "1.0.0" | |
pub async fn many_requests(urls: &[String]) -> Vec<Result<String, surf::Exception>> { | |
let client = surf::Client::new(); | |
let mut handles = vec![]; | |
for url in urls { | |
let request = client.get(&url).recv_string(); |
OlderNewer