diff options
| author | tylov <[email protected]> | 2023-07-15 23:20:16 +0200 |
|---|---|---|
| committer | tylov <[email protected]> | 2023-07-15 23:20:16 +0200 |
| commit | e9121702a5d69624ef1e782e85a8f032e4f4e875 (patch) | |
| tree | 00e7770c9b775d98b518d9e3929b6ec4f71ad754 /docs/csview_api.md | |
| parent | 23aebb77554bc43c929704e9f1c46dc4520024df (diff) | |
| download | STC-modified-e9121702a5d69624ef1e782e85a8f032e4f4e875.tar.gz STC-modified-e9121702a5d69624ef1e782e85a8f032e4f4e875.zip | |
Improved warning, and other enhancements in ccommon.h
Diffstat (limited to 'docs/csview_api.md')
| -rw-r--r-- | docs/csview_api.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/csview_api.md b/docs/csview_api.md index 33df6a64..79a5c07b 100644 --- a/docs/csview_api.md +++ b/docs/csview_api.md @@ -121,7 +121,7 @@ uint64_t csview_hash(const csview* x); #include <stc/cstr.h> #include <stc/csview.h> -int main () +int main(void) { cstr str1 = cstr_lit("We think in generalities, but we live in details."); // (quoting Alfred N. Whitehead) @@ -151,7 +151,7 @@ red Apples #define i_import // include dependent cstr, utf8 and cregex function definitions. #include <stc/cstr.h> -int main() +int main(void) { cstr s1 = cstr_lit("hell😀 w😀rld"); @@ -198,7 +198,7 @@ cstack_str string_split(csview input, const char* sep) return out; } -int main() +int main(void) { print_split(c_sv("//This is a//double-slash//separated//string"), "//"); print_split(c_sv("This has no matching separator"), "xx"); |
