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