shithub: scc

ref: 23dc13cd28f352c55d1052b45683269290af8682
dir: /lib/coff32/coff32_pack_ent.c/

View raw version
#include <assert.h>

#include "../../inc/coff32/syms.h"
#include "../../inc/coff32/coff32.h"

void
coff32_pack_ent(packfun fun, unsigned char *buff, SYMENT *ent)
{
	int n;

	n = (*fun)(buff,
		   "'8lsscc",
		   &ent->n_name,
		   &ent->n_value,
		   &ent->n_scnum,
		   &ent->n_type,
		   &ent->n_sclass,
		   &ent->n_numaux);
	assert(n == SYMESZ);
}