File tree Expand file tree Collapse file tree 4 files changed +596
-715
lines changed Expand file tree Collapse file tree 4 files changed +596
-715
lines changed Original file line number Diff line number Diff line change @@ -4,9 +4,9 @@ OBJ_TEST = $(TEST:.c=.o)
44CFLAGS = -D_GNU_SOURCE -std=c99
55
66LFLAGS = -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
1111COVFLAGS = -Wall -fprofile-arcs -ftest-coverage
1212
Original file line number Diff line number Diff 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
2525int
2626main (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
You can’t perform that action at this time.
0 commit comments