shithub: libtags

ref: 4a7f42e378e27bf70c928b411ac859c870c23f24
dir: /xm.c/

View raw version
#include "tagspriv.h"

int
tagxm(Tagctx *ctx)
{
	uint8_t d[17+20+1], o[20*UTFmax+1];

	if(ctx->read(ctx, d, 17+20) != 17+20 || strncasecmp((char*)d, "Extended Module: ", 17) != 0)
		return -1;
	d[17+20] = 0;
	if(cp437toutf8(o, sizeof(o), d+17, 20) > 0)
		txtcb(ctx, Ttitle, "", o);

	return 0;
}