restructure control commands

This commit is contained in:
Christian Giese
2022-10-07 16:29:42 +00:00
parent bd30f127a5
commit d55e76ec1f
32 changed files with 1986 additions and 1709 deletions
+10
View File
@@ -632,4 +632,14 @@ replace_substring(const char* source,
}
*result_pos = '\0';
return result;
}
char *
string_or_na(char *string)
{
if(string) {
return string;
} else {
return "N/A";
}
}
+1
View File
@@ -45,5 +45,6 @@ bool ipv6_addr_not_zero(ipv6addr_t *addr);
bool ipv6_prefix_not_zero(ipv6_prefix *prefix);
char *replace_substring(const char* s, const char* old, const char* new);
char *string_or_na(char *string);
#endif