aboutsummaryrefslogtreecommitdiff
path: root/src/ipstr.c
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2016-08-08 08:53:46 +0300
committerSergey Poznyakoff <gray@gnu.org>2016-08-08 08:53:46 +0300
commitbd5b7c29986b8106595f35cbe303fc44cf8c4d0d (patch)
tree84b39cc6d228b3642f7105c48162193a05982882 /src/ipstr.c
parent102d1b9c1a94548dfa0c498845c77933db6a7738 (diff)
downloadgrecs-bd5b7c29986b8106595f35cbe303fc44cf8c4d0d.tar.gz
grecs-bd5b7c29986b8106595f35cbe303fc44cf8c4d0d.tar.bz2
Rename the projectargot
Diffstat (limited to 'src/ipstr.c')
-rw-r--r--src/ipstr.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/ipstr.c b/src/ipstr.c
index 2787016..90b4cab 100644
--- a/src/ipstr.c
+++ b/src/ipstr.c
@@ -1,4 +1,4 @@
-/* grecs - Gray's Extensible Configuration System
+/* argot - Gray's Extensible Configuration System
Copyright (C) 2007-2016 Sergey Poznyakoff
Grecs is free software; you can redistribute it and/or modify it
@@ -19,10 +19,10 @@
#endif
#include <string.h>
#include <ctype.h>
-#include "grecs.h"
+#include "argot.h"
int
-grecs_str_is_ipv4(const char *addr)
+argot_str_is_ipv4(const char *addr)
{
int dot_count = 0;
int digit_count = 0;
@@ -42,7 +42,7 @@ grecs_str_is_ipv4(const char *addr)
}
int
-grecs_str_is_ipv6(const char *addr)
+argot_str_is_ipv6(const char *addr)
{
int col_count = 0; /* Number of colons */
int dcol = 0; /* Did we encounter a double-colon? */
@@ -68,7 +68,7 @@ grecs_str_is_ipv6(const char *addr)
}
int
-grecs_str_is_num(const char *s)
+argot_str_is_num(const char *s)
{
for (; *s; ++s)
if (!isdigit(*s))
@@ -77,12 +77,12 @@ grecs_str_is_num(const char *s)
}
int
-grecs_str_is_ipaddr(const char *addr)
+argot_str_is_ipaddr(const char *addr)
{
if (strchr (addr, '.'))
- return grecs_str_is_ipv4(addr);
+ return argot_str_is_ipv4(addr);
else if (strchr (addr, ':'))
- return grecs_str_is_ipv6(addr);
+ return argot_str_is_ipv6(addr);
return 0;
}

Return to:

Send suggestions and report system problems to the System administrator.