Skip to content

Commit 83bf752

Browse files
committed
Refactor code-style
1 parent 4cd2c7d commit 83bf752

File tree

4 files changed

+596
-715
lines changed

4 files changed

+596
-715
lines changed

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ OBJ_TEST = $(TEST:.c=.o)
44
CFLAGS = -D_GNU_SOURCE -std=c99
55

66
LFLAGS = -Wall -Wno-format-y2k -W -Wstrict-prototypes -Wmissing-prototypes \
7-
-Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch \
8-
-Wshadow -Wcast-align -Wbad-function-cast -Wchar-subscripts -Winline \
9-
-Wnested-externs -Wredundant-decls
7+
-Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch \
8+
-Wshadow -Wcast-align -Wbad-function-cast -Wchar-subscripts -Winline \
9+
-Wnested-externs -Wredundant-decls
1010

1111
COVFLAGS = -Wall -fprofile-arcs -ftest-coverage
1212

readme.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Or clone the repo.
1515

1616
## Usage
1717

18-
### int stem(char *pointer, int start, int end);
18+
### `int stem(char *pointer, int start, int end)`
1919

2020
```c
2121
#include <stdio.h>
@@ -24,13 +24,13 @@ Or clone the repo.
2424

2525
int
2626
main(int argc, char **argv) {
27-
char *word = argv[1];
27+
char *word = argv[1];
2828

29-
int end = stem(word, 0, strlen(word) - 1);
29+
int end = stem(word, 0, strlen(word) - 1);
3030

31-
word[end + 1] = 0;
31+
word[end + 1] = 0;
3232

33-
printf("%s", word);
33+
printf("%s", word);
3434
}
3535
```
3636

0 commit comments

Comments
 (0)