slang-users mailing list

[2007 Date Index] [2007 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

Re: [slang-users] C Structure help ...


> What is the diff between using malloc / calloc / free versus
> SLmalloc, SLcalloc and SLfree ?

The S-Lang versions ensure that SLang_Error reflects any error
that may have arisen.  For example, this would enable an out of
memory condition to be thrown as a S-Lang error and then
detected/caught in S-Lang scope, instead of having the process
creep along in some undefined state.

-Mike



[2007 date index] [2007 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]