allocate storage
ptr = avail();