]> begriffs open source - ai-pg/blob - full-docs/txt/spi-realloc.txt
Convert HTML docs to more streamlined TXT
[ai-pg] / full-docs / txt / spi-realloc.txt
1
2 SPI_repalloc
3
4    SPI_repalloc — reallocate memory in the upper executor context
5
6 Synopsis
7
8 void * SPI_repalloc(void * pointer, Size size)
9
10 Description
11
12    SPI_repalloc changes the size of a memory segment previously allocated
13    using SPI_palloc.
14
15    This function is no longer different from plain repalloc. It's kept
16    just for backward compatibility of existing code.
17
18 Arguments
19
20    void * pointer
21           pointer to existing storage to change
22
23    Size size
24           size in bytes of storage to allocate
25
26 Return Value
27
28    pointer to new storage space of specified size with the contents copied
29    from the existing area