mirror of
https://github.com/0intro/wmii
synced 2024-11-26 07:39:37 +03:00
16 lines
241 B
C
16 lines
241 B
C
|
/* Written by Kris Maglione <maglione.k at Gmail> */
|
||
|
/* Public domain */
|
||
|
#include "util.h"
|
||
|
|
||
|
void*
|
||
|
freelater(void *p) {
|
||
|
static char* obj[16];
|
||
|
static long nobj;
|
||
|
int id;
|
||
|
|
||
|
id = nobj++ % nelem(obj);
|
||
|
free(obj[id]);
|
||
|
obj[id] = p;
|
||
|
return p;
|
||
|
}
|