Does anyone know when _smalloc (and the other _s… memory functions) shall
be used instead of malloc ?
regards, MP
Does anyone know when _smalloc (and the other _s… memory functions) shall
be used instead of malloc ?
regards, MP
Some would argue that _smalloc() would be more efficent (in that it doesn’t
incure the overhead that malloc does), but in the normalized case, there
isn’t any benifit. Add to that the need to specify the size of the _sfree()
and you have another way of creating a memory leak/trample.
–
Cheers,
Adam
With a PC, I always felt limited by the software available.
On Unix, I am limited only by my knowledge.
–Peter J. Schoenster <pschon@baste.magibox.net>
“Mats Pettersson” <mats.pettersson@wavium.se> wrote in message
news:a26q1a$iuj$1@inn.qnx.com…
Does anyone know when _smalloc (and the other _s… memory functions)
shall
be used instead of malloc ?regards, MP
Mats Pettersson <mats.pettersson@wavium.se> wrote:
Does anyone know when _smalloc (and the other _s… memory functions)
shall be used instead of malloc ?
IMHO, and from much profiling/analysis in this area, … never.