Skip to content

Commit 7b22157

Browse files
committed
palindromo c - typo
1 parent 92a737e commit 7b22157

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/c/Palindromo.c

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#include <stdio.h>
22
#include <string.h>
33

4-
#define TAMANHO_MAX_PALAVRA 100
4+
#define MAX_SIZE_WORD 100
55

66
void calc_reverse(char *input, char *output) {
77
size_t len_input = strlen(input);
@@ -15,13 +15,13 @@ void calc_reverse(char *input, char *output) {
1515
}
1616

1717
int main() {
18-
char input[TAMANHO_MAX_PALAVRA];
19-
char reverse[TAMANHO_MAX_PALAVRA];
18+
char input[MAX_SIZE_WORD];
19+
char reverse[MAX_SIZE_WORD];
2020

2121
printf("Digite uma palavra: ");
2222

23-
fgets(input, TAMANHO_MAX_PALAVRA, stdin);
24-
//remove New Line from the end;
23+
fgets(input, MAX_SIZE_WORD, stdin);
24+
//remove New Line from the end
2525
input[strlen(input) - 1] = '\0';
2626

2727
calc_reverse(input, reverse);

0 commit comments

Comments
 (0)