Searched refs:space_for_null (Results 1 – 1 of 1) sorted by relevance
65 size_t space_for_null = (n > 0 && buf[n - 1] != '\0') ? 1 : 0; in fmemopen_write() local71 if (static_cast<size_t>(n) + space_for_null > ck->capacity - ck->offset) { in fmemopen_write()72 n = ck->capacity - ck->offset - space_for_null; in fmemopen_write()