Fix example

This commit is contained in:
0x1eef 2023-08-25 16:18:35 -03:00
parent 7c02f425c5
commit 7e8e312e1b
2 changed files with 2 additions and 2 deletions

View file

@ -28,7 +28,7 @@ main(void)
const int i = sizeof(strings) / sizeof(strings[0]);
for (int j = 0; j < i; j++) {
str = strings[j];
if(isinetaddr(str)) {
if (isinetaddr(str)) {
printf("%s is a valid IPv4 address\n", str);
} else {
printf("%s is an invalid IPv4 address\n", str);

View file

@ -14,7 +14,7 @@ main(void)
const int i = sizeof(strings) / sizeof(strings[0]);
for (int j = 0; j < i; j++) {
str = strings[j];
if(isinetaddr(str)) {
if (isinetaddr(str)) {
printf("%s is a valid IPv4 address\n", str);
} else {
printf("%s is an invalid IPv4 address\n", str);