For all currently supported platforms `unsigned long` is 32 bit in width. But better use `uint32_t` to be safe.