diff options
| author | Mitja Felicijan <mitja.felicijan@gmail.com> | 2024-09-15 07:54:31 +0200 |
|---|---|---|
| committer | Mitja Felicijan <mitja.felicijan@gmail.com> | 2024-09-15 07:54:31 +0200 |
| commit | 12d299f552a5aa8b6ea711dbe67805c4a5aab10d (patch) | |
| tree | ceda78da0eebd00359cb486969049fe91d4d62cc /c-structs | |
| parent | ef8ffebb9216684dc0314529ee2fa98baa5f2c7b (diff) | |
| download | probe-12d299f552a5aa8b6ea711dbe67805c4a5aab10d.tar.gz | |
Move to LLVM ruleset for Clang autoformatter
Diffstat (limited to 'c-structs')
| -rw-r--r-- | c-structs/.clang-format | 2 | ||||
| -rw-r--r-- | c-structs/read.c | 2 | ||||
| -rw-r--r-- | c-structs/struct.h | 1 | ||||
| -rw-r--r-- | c-structs/write.c | 2 |
4 files changed, 3 insertions, 4 deletions
diff --git a/c-structs/.clang-format b/c-structs/.clang-format index 5f0e585..84ac618 100644 --- a/c-structs/.clang-format +++ b/c-structs/.clang-format @@ -1,4 +1,4 @@ -BasedOnStyle: Chromium +BasedOnStyle: LLVM ColumnLimit: 120 IndentWidth: 4 diff --git a/c-structs/read.c b/c-structs/read.c index b67974f..758256f 100644 --- a/c-structs/read.c +++ b/c-structs/read.c @@ -7,7 +7,7 @@ int main(void) { Character ch; - FILE* file = fopen("character.dat", "rb"); + FILE *file = fopen("character.dat", "rb"); if (file == NULL) { perror("Error opening file"); return 1; diff --git a/c-structs/struct.h b/c-structs/struct.h index 38a0cc7..f456bf7 100644 --- a/c-structs/struct.h +++ b/c-structs/struct.h @@ -3,4 +3,3 @@ typedef struct { int health; float damage; } Character; - diff --git a/c-structs/write.c b/c-structs/write.c index e83531a..5de3a8f 100644 --- a/c-structs/write.c +++ b/c-structs/write.c @@ -12,7 +12,7 @@ int main(void) { ch.health = 30; ch.damage = 5.9; - FILE* file = fopen("character.dat", "wb"); + FILE *file = fopen("character.dat", "wb"); if (file == NULL) { perror("Error opening file"); return 1; |
