--- rxvt-unicode/src/rxvtutil.h 2006/01/22 00:36:59 1.19 +++ rxvt-unicode/src/rxvtutil.h 2006/01/25 00:42:21 1.20 @@ -398,5 +398,15 @@ } }; +// return a very temporary (and never deallocated) buffer. keep small. +void *rxvt_temp_buf (int len); + +template +inline T * +rxvt_temp_buf (int len) +{ + return (T *)rxvt_temp_buf (len * sizeof (T)); +} + #endif