Path: utzoo!news-server.csri.toronto.edu!rutgers!mcnc!uvaarpa!haven!adm!smoke!gwyn From: gwyn@smoke.brl.mil (Doug Gwyn) Newsgroups: comp.unix.questions Subject: Re: sbrk(2) question Message-ID: <15424@smoke.brl.mil> Date: 10 Mar 91 22:20:39 GMT References: <1991Mar8.180132.12025@Think.COM> Organization: U.S. Army Ballistic Research Laboratory, APG, MD. Lines: 7 In article <1991Mar8.180132.12025@Think.COM> barmar@think.com (Barry Margolin) writes: >This question came up at work yesterday: when sbrk(2) is used to increase >the size of the data segment, is the newly-allocated memory guaranteed to >be empty? You should not assume that. If you want it to contain 0-valued bytes, use memset() to fill it with 0 bytes.