diff options
| author | Tyge Løvset <[email protected]> | 2022-10-14 16:02:25 +0200 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2022-10-14 16:02:25 +0200 |
| commit | d26fd02b70b9f091c2bcfa350e420f74c1f023f8 (patch) | |
| tree | 7ca2902ee839cb1ce7bfc3333f6ead2e4ea39ef2 /docs/cstr_api.md | |
| parent | 54c08dc031c622e78dc134353690ed359b9173d8 (diff) | |
| download | STC-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/cstr_api.md')
| -rw-r--r-- | docs/cstr_api.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/cstr_api.md b/docs/cstr_api.md index 439faca7..ceeeac2a 100644 --- a/docs/cstr_api.md +++ b/docs/cstr_api.md @@ -161,7 +161,7 @@ char* c_strnstrn(const char* str, const char* search, size_t slen, size_t int main() { cstr s0 = cstr_new("Initialization without using strlen()."); - printf("%s\nLength: %" PRIuMAX "\n\n", cstr_str(&s0), cstr_size(&s0)); + printf("%s\nLength: %" c_zu "\n\n", cstr_str(&s0), cstr_size(&s0)); cstr s1 = cstr_new("one-nine-three-seven-five."); printf("%s\n", cstr_str(&s1)); |
