diff options
author | Not Zed <NotZed@HelixCode.com> | 2000-11-21 12:01:10 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2000-11-21 12:01:10 +0800 |
commit | 4639aa999e0776b02651412ab12ded8f0c35669c (patch) | |
tree | 55f9e49623a93f9ad3ad6a1a7478b9ad248db96c /e-util/e-memory.c | |
parent | 7ea24b0cb12e396794284da34762c508bce472d8 (diff) | |
download | gsoc2013-evolution-4639aa999e0776b02651412ab12ded8f0c35669c.tar gsoc2013-evolution-4639aa999e0776b02651412ab12ded8f0c35669c.tar.gz gsoc2013-evolution-4639aa999e0776b02651412ab12ded8f0c35669c.tar.bz2 gsoc2013-evolution-4639aa999e0776b02651412ab12ded8f0c35669c.tar.lz gsoc2013-evolution-4639aa999e0776b02651412ab12ded8f0c35669c.tar.xz gsoc2013-evolution-4639aa999e0776b02651412ab12ded8f0c35669c.tar.zst gsoc2013-evolution-4639aa999e0776b02651412ab12ded8f0c35669c.zip |
New function to allocate a zero'd out chunk.
2000-11-21 Not Zed <NotZed@HelixCode.com>
* e-memory.c (e_memchunk_alloc0): New function to allocate a
zero'd out chunk.
svn path=/trunk/; revision=6624
Diffstat (limited to 'e-util/e-memory.c')
-rw-r--r-- | e-util/e-memory.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/e-util/e-memory.c b/e-util/e-memory.c index c3f7bfde15..2a3cd55771 100644 --- a/e-util/e-memory.c +++ b/e-util/e-memory.c @@ -135,6 +135,16 @@ void *e_memchunk_alloc(MemChunk *m) } } +void *e_memchunk_alloc0(EMemChunk *m) +{ + void *mem; + + mem = e_memchunk_alloc(m); + memset(mem, 0, m->atomsize); + + return mem; +} + /** * e_memchunk_free: * @m: |