main
ansi.h
1#ifndef ANSI_H
2#define ANSI_H
3
4enum ansi_kind {
5 ANSI_NONE = 0,
6 ANSI_SGR,
7 ANSI_DISCARD,
8};
9
10int ansi_escape(const char *s, const char **next, enum ansi_kind *kind);
11
12#endif
main
ansi.h
1#ifndef ANSI_H
2#define ANSI_H
3
4enum ansi_kind {
5 ANSI_NONE = 0,
6 ANSI_SGR,
7 ANSI_DISCARD,
8};
9
10int ansi_escape(const char *s, const char **next, enum ansi_kind *kind);
11
12#endif