diff options
| author | Tyge Løvset <[email protected]> | 2022-10-21 09:31:17 +0200 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2022-10-21 09:31:17 +0200 |
| commit | 3eb08b0372dd669af535a368e8a8cdb8a9c793c5 (patch) | |
| tree | 05d70cd2fe623eddc94280767c88332d8773405f /docs/cbits_api.md | |
| parent | 2cefae32252f3051f75f44f4718a62a1210bd3a7 (diff) | |
| download | STC-modified-3eb08b0372dd669af535a368e8a8cdb8a9c793c5.tar.gz STC-modified-3eb08b0372dd669af535a368e8a8cdb8a9c793c5.zip | |
Renamed size_t formatting macro c_zu to c_ZU (for replacing %zu on mingw64).
Diffstat (limited to 'docs/cbits_api.md')
| -rw-r--r-- | docs/cbits_api.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/cbits_api.md b/docs/cbits_api.md index 51c89f21..b21611df 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 %" c_zu "\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: %" c_zu ", 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(" %" c_zu, i); + if (cbits_test(&primes, i>>1)) printf(" %" c_ZU, i); puts(""); cbits_drop(&primes); |
