Last change
on this file since 1331 was
1314,
checked in by Maciej Komosinski, 6 months ago
|
Added realloc() implementation that behaves like free() when size==0 - consistently on all platforms, in contrast to standard realloc()
|
File size:
435 bytes
|
Rev | Line | |
---|
[1314] | 1 | // This file is a part of Framsticks SDK. http://www.framsticks.com/
|
---|
| 2 | // Copyright (C) 2023-2024 Maciej Komosinski and Szymon Ulatowski.
|
---|
| 3 | // See LICENSE.txt for details.
|
---|
| 4 |
|
---|
| 5 | #ifndef _COMMON_REALLOC_FREE0SIZE_H_
|
---|
| 6 | #define _COMMON_REALLOC_FREE0SIZE_H_
|
---|
| 7 |
|
---|
| 8 | #include <stdlib.h>
|
---|
| 9 |
|
---|
| 10 | // realloc() implementation that behaves like free() when size==0 (consistently on all platforms)
|
---|
| 11 | void *realloc_free0size(void *ptr, size_t size);
|
---|
| 12 |
|
---|
| 13 | #endif
|
---|
Note: See
TracBrowser
for help on using the repository browser.