summaryrefslogtreecommitdiffhomepage
path: root/docs/cbits_api.md
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2022-10-14 16:02:25 +0200
committerTyge Løvset <[email protected]>2022-10-14 16:02:25 +0200
commitd26fd02b70b9f091c2bcfa350e420f74c1f023f8 (patch)
tree7ca2902ee839cb1ce7bfc3333f6ead2e4ea39ef2 /docs/cbits_api.md
parent54c08dc031c622e78dc134353690ed359b9173d8 (diff)
downloadSTC-modified-d26fd02b70b9f091c2bcfa350e420f74c1f023f8.tar.gz
STC-modified-d26fd02b70b9f091c2bcfa350e420f74c1f023f8.zip
Replaced PRIuMAX with new c_zu macro in examples. "%zu" is not supported by mingw64 and PRIuMAX is not a replacement for "zu".
Diffstat (limited to 'docs/cbits_api.md')
-rw-r--r--docs/cbits_api.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/cbits_api.md b/docs/cbits_api.md
index 269db9b3..51c89f21 100644
--- a/docs/cbits_api.md
+++ b/docs/cbits_api.md
@@ -91,18 +91,18 @@ cbits sieveOfEratosthenes(size_t n)
int main(void)
{
size_t n = 100000000;
- printf("computing prime numbers up to %" PRIuMAX "\n", n);
+ printf("computing prime numbers up to %" c_zu "\n", n);
clock_t t1 = clock();
cbits primes = sieveOfEratosthenes(n + 1);
size_t nprimes = cbits_count(&primes);
clock_t t2 = clock();
- printf("number of primes: %" PRIuMAX ", time: %f\n", nprimes, (float)(t2 - t1)/CLOCKS_PER_SEC);
+ printf("number of primes: %" c_zu ", time: %f\n", nprimes, (float)(t2 - t1)/CLOCKS_PER_SEC);
printf(" 2");
for (size_t i = 3; i < 1000; i += 2)
- if (cbits_test(&primes, i>>1)) printf(" %" PRIuMAX "", i);
+ if (cbits_test(&primes, i>>1)) printf(" %" c_zu, i);
puts("");
cbits_drop(&primes);