Calculate resources alignment
resource_size_t resource_alignment(struct resource * res);
res
resource pointer
Returns alignment on success, 0 (invalid alignment) on failure.