Skip to content

Commit

Permalink
Refactor code-style
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Jul 2, 2017
1 parent 4cd2c7d commit 83bf752
Show file tree
Hide file tree
Showing 4 changed files with 596 additions and 715 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ OBJ_TEST = $(TEST:.c=.o)
CFLAGS = -D_GNU_SOURCE -std=c99

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

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

Expand Down
10 changes: 5 additions & 5 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Or clone the repo.

## Usage

### int stem(char *pointer, int start, int end);
### `int stem(char *pointer, int start, int end)`

```c
#include <stdio.h>
Expand All @@ -24,13 +24,13 @@ Or clone the repo.

int
main(int argc, char **argv) {
char *word = argv[1];
char *word = argv[1];

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

word[end + 1] = 0;
word[end + 1] = 0;

printf("%s", word);
printf("%s", word);
}
```
Expand Down
Loading

0 comments on commit 83bf752

Please sign in to comment.