ALLOC_BUFMEM
ALLOC_BUFMEM(outstr, bufsize, strlen(optarg)+1)
ALLOC_BUFMEM(outstr, bufsize, 3)
ALLOC_BUFMEM(outstr, bufsize, strlen(argv[optind])+1)
ALLOC_BUFMEM(outstr, bufsize, 3);