wmii

git clone git://oldgit.suckless.org/wmii/
Log | Files | Refs | README | LICENSE

freelater.c (241B)


      1 /* Written by Kris Maglione <maglione.k at Gmail> */
      2 /* Public domain */
      3 #include "util.h"
      4 
      5 void*
      6 freelater(void *p) {
      7 	static char*	obj[16];
      8 	static long	nobj;
      9 	int id;
     10 
     11 	id = nobj++ % nelem(obj);
     12 	free(obj[id]);
     13 	obj[id] = p;
     14 	return p;
     15 }