To zero/fill array with some value take a look at

bzero() / memset()

        Marin


       "Knowledge is not a crime. Some of its applications are..."

                                                         - Unknown hacker



On Mon, 20 Jul 1998, Steve George wrote:

->Hi,
->
->When I initialise an auto array I often want to fill it with a default value 
->rather than leave the junk in it.  At the moment I write a loop to run 
->through the array and fill it with a number/char but I was wondering if there 
->is a standard lib func to do this?
->
->This applies for both char and int arrays.
->
->I checked http://www.telespace.ch/libc/ but can't find anything obvious.
->
->TIA,
->
->Steve
->

Reply via email to