14 lines
335 B
C
14 lines
335 B
C
#pragma once
|
|
#include "types.h"
|
|
#include <libintl.h>
|
|
#include <stdbool.h>
|
|
|
|
#define _(x) gettext(x)
|
|
|
|
void pdebug(lm_ctx_t *ctx, const char *func, const char *fmt, ...);
|
|
bool parse_host(char *addr, char *host, uint16_t *port);
|
|
bool contains(char *str, char s);
|
|
bool eq(char *s1, char *s2);
|
|
bool is_letter(char c);
|
|
bool is_digit(char c);
|