Exemple #1
0
/* Write a NCtype to the header */
static int
v1h_put_NCtype(v1hs *psp, NCtype type)
{
	const int itype = (int) type;
	int status = check_v1hs(psp, X_SIZEOF_INT);
	if(status != ENOERR)
		return status;
	status = ncx_put_int_int(psp->pos, &itype);
	psp->pos = (void *)((char *)psp->pos + X_SIZEOF_INT);
	return status;
}
Exemple #2
0
/* Write a NCtype to the header */
static int
v1h_put_NCtype(v1hs *psp, NCtype type)
{
	const int itype = (int) type;
	int status = check_v1hs(psp, X_SIZEOF_INT);
    if(status != NC_NOERR)
		return status;
	status = ncx_put_int_int(psp->pos, &itype);
#ifdef __arm__
    psp->pos = (void *)((signed char *)psp->pos + X_SIZEOF_INT);
#else
	psp->pos = (void *)((char *)psp->pos + X_SIZEOF_INT);
#endif
    return status;
}