mirror of https://github.com/Genymobile/scrcpy
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
285 B
C
16 lines
285 B
C
2 years ago
|
#ifndef SC_MEMORY_H
|
||
|
#define SC_MEMORY_H
|
||
|
|
||
|
#include <stddef.h>
|
||
|
|
||
|
/**
|
||
|
* Allocate an array of `nmemb` items of `size` bytes each
|
||
|
*
|
||
|
* Like calloc(), but without initialization.
|
||
|
* Like reallocarray(), but without reallocation.
|
||
|
*/
|
||
|
void *
|
||
|
sc_allocarray(size_t nmemb, size_t size);
|
||
|
|
||
|
#endif
|