diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-09-03 20:31:01 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-09-03 20:31:01 +0900 |
| commit | b845c3cebf6ae86036a85bbdc155def5044c9940 (patch) | |
| tree | 5159a77490c54466a9850e1cc138cea57f7cf62d | |
| parent | f3a1ea57244608c1795e7f90cb3077c6a01686a9 (diff) | |
| download | ducc-b845c3cebf6ae86036a85bbdc155def5044c9940.tar.gz ducc-b845c3cebf6ae86036a85bbdc155def5044c9940.tar.zst ducc-b845c3cebf6ae86036a85bbdc155def5044c9940.zip | |
feat: use <stdio.h> of glibc in examples/*.c
| -rw-r--r-- | .clang-format | 5 | ||||
| -rw-r--r-- | examples/fizzbuzz.c | 2 | ||||
| -rw-r--r-- | examples/hello.c | 2 |
3 files changed, 7 insertions, 2 deletions
diff --git a/.clang-format b/.clang-format index 35dc112..121ae98 100644 --- a/.clang-format +++ b/.clang-format @@ -9,6 +9,11 @@ AlignTrailingComments: false AllowShortFunctionsOnASingleLine: None BreakStringLiterals: false ColumnLimit: 120 +IncludeCategories: + - Regex: '<.+>' + Priority: 1 + - Regex: '.*' + Priority: 2 IndentWidth: 4 KeepEmptyLines: AtStartOfBlock: false diff --git a/examples/fizzbuzz.c b/examples/fizzbuzz.c index c24ce89..7ff9f36 100644 --- a/examples/fizzbuzz.c +++ b/examples/fizzbuzz.c @@ -1,4 +1,4 @@ -int printf(const char*, ...); +#include <stdio.h> int main() { for (int i = 1; i <= 100; i++) { diff --git a/examples/hello.c b/examples/hello.c index 5dce624..a8cb1ec 100644 --- a/examples/hello.c +++ b/examples/hello.c @@ -1,4 +1,4 @@ -int printf(const char*, ...); +#include <stdio.h> int main() { printf("Hello, World!\n"); |
