escape: introduce decescape

This 3-digit decimal escape style is useful when presenting DNS RR
information in zone-file presentation format.
This commit is contained in:
Ronan Pigott
2024-01-16 10:49:26 -07:00
parent e7634d6b05
commit b699f5f2cd
3 changed files with 46 additions and 0 deletions
+1
View File
@@ -65,6 +65,7 @@ static inline char* xescape(const char *s, const char *bad) {
return xescape_full(s, bad, SIZE_MAX, 0);
}
char* octescape(const char *s, size_t len);
char* decescape(const char *s, const char *bad, size_t len);
char* escape_non_printable_full(const char *str, size_t console_width, XEscapeFlags flags);
char* shell_escape(const char *s, const char *bad);