File details
Filename
c_sample_file_200KB.cSize200.0 KB (204800 bytes)
MIME type
text/x-csrcExtension
.cSHA256
a840b9bdfb7b0ef3e525780572cf053574c1fb343681ddb933ab4edbcaa55277Download commands
Use in scripts and tests
curl -L -o c_sample_file_200KB.c \
https://samplefile.com/samples/download/code/c/c_sample_file_200KB.c/
wget -O c_sample_file_200KB.c \
https://samplefile.com/samples/download/code/c/c_sample_file_200KB.c/
import requests
url = "https://samplefile.com/samples/download/code/c/c_sample_file_200KB.c/"
resp = requests.get(url)
with open("c_sample_file_200KB.c", "wb") as f:
f.write(resp.content)
const resp = await fetch("https://samplefile.com/samples/download/code/c/c_sample_file_200KB.c/");
const buf = Buffer.from(await resp.arrayBuffer());
require("fs").writeFileSync("c_sample_file_200KB.c", buf);
# Download and verify SHA256
curl -L -o c_sample_file_200KB.c https://samplefile.com/samples/download/code/c/c_sample_file_200KB.c/
echo "a840b9bdfb7b0ef3e525780572cf053574c1fb343681ddb933ab4edbcaa55277 c_sample_file_200KB.c" | shasum -a 256 -c
# Python
import hashlib, requests
data = requests.get("https://samplefile.com/samples/download/code/c/c_sample_file_200KB.c/").content
assert hashlib.sha256(data).hexdigest() == "a840b9bdfb7b0ef3e525780572cf053574c1fb343681ddb933ab4edbcaa55277"
More C files
Other C Sample Files
| Filename | Size | SHA256 | Download |
|---|---|---|---|
c_sample_file_1MB.c |
1.0 MB | 245cb0c4085722d6… |
Download |
c_sample_file_500KB.c |
500.0 KB | 54ba456b2fb68a86… |
Download |
c_sample_file_50KB.c |
50.0 KB | 95770c0abf456c93… |
Download |
Learn more