summaryrefslogtreecommitdiffhomepage
path: root/docs/cstr_api.md
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2022-10-21 09:31:17 +0200
committerTyge Løvset <[email protected]>2022-10-21 09:31:17 +0200
commit3eb08b0372dd669af535a368e8a8cdb8a9c793c5 (patch)
tree05d70cd2fe623eddc94280767c88332d8773405f /docs/cstr_api.md
parent2cefae32252f3051f75f44f4718a62a1210bd3a7 (diff)
downloadSTC-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/cstr_api.md')
-rw-r--r--docs/cstr_api.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/cstr_api.md b/docs/cstr_api.md
index ceeeac2a..a3211a52 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: %" c_zu "\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));