Fix example
This commit is contained in:
parent
7c02f425c5
commit
7e8e312e1b
2 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue