#!/usr/local/bin/rune -x # # Test sizeof(), arysize(), and typeof(). import "sys"; import ; int main(int ac, char **av) { int i; # Time with getfreebuffer1(), getfreebuffer2(), and getfreebuffer3(). # stdio.stdout->show("time this nozero loop"); for (i = 0; i < 5000000; ++i) { getfreebuffer3(); } return(0); } void getfreebuffer1() { heap __nozero char buf[32760]; } void getfreebuffer2() { char *buf; buf.new(32760); buf = NULL; } void getfreebuffer3() { char buf[32760]; }