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/clist_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/clist_api.md')
| -rw-r--r-- | docs/clist_api.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/clist_api.md b/docs/clist_api.md index 023cca41..3d785789 100644 --- a/docs/clist_api.md +++ b/docs/clist_api.md @@ -122,7 +122,7 @@ Interleave *push_front()* / *push_back()* then *sort()*: #include <stdio.h> -int main() { +int main(void) { DList list = c_init(DList, {10., 20., 30., 40., 50., 60., 70., 80., 90.}); c_forrange (i, 1, 10) { @@ -159,7 +159,7 @@ Use of *erase_at()* and *erase_range()*: #include <stdio.h> -int main () +int main(void) { clist_i L = c_init(clist_i, {10, 20, 30, 40, 50}); // 10 20 30 40 50 @@ -194,7 +194,7 @@ Splice `[30, 40]` from *L2* into *L1* before `3`: #include <stdio.h> -int main() { +int main(void) { clist_i L1 = c_init(clist_i, {1, 2, 3, 4, 5}); clist_i L2 = c_init(clist_i, {10, 20, 30, 40, 50}); |
