• R
    move alignment check from aligned_alloc to posix_memalign · 65141618
    Rich Felker 提交于
    C11 has no requirement that the alignment be a multiple of
    sizeof(void*), and in fact seems to require any "valid alignment
    supported by the implementation" to work. since the alignment of char
    is 1 and thus a valid alignment, an alignment argument of 1 should be
    accepted.
    65141618
aligned_alloc.c 1.1 KB