chickadee » scheme2c-compatibility » with-c-string

with-alloc x fprocedure
with-buffer-stream f buffer size modeprocedure
with-c-string str fprocedure
with-file-stream f filename modeprocedure
with-array elements element-size fprocedure
with-c-pointers f vprocedure
with-vector->c-array f set-element element-size vprocedure

Perform many of the operations above automatically cleaning up once the procedure returns.