diff options
author | Lukas Czerner <lczerner@redhat.com> | 2011-05-18 14:19:52 +0200 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2011-05-18 11:41:02 -0400 |
commit | ffec46fea48f1f05fbe2fb863b44fd2dd718c50f (patch) | |
tree | 99fa5a75dc1a5b67fa5aba3a7cbe136cbb212ea4 /misc/jfs_user.h | |
parent | f5ae5b3a12a052c70f139d3f8431d3eb25ccae3b (diff) | |
download | e2fsprogs-ffec46fea48f1f05fbe2fb863b44fd2dd718c50f.tar.gz |
e2fsprogs: Add memory allocation and zero-out helpers
Add functions ext2fs_get_memzero() which will malloc() the memory
using ext2fs_get_mem(), but it will zero the allocated memory afterwards
with memset().
Add function ext2fs_get_arrayzero() which will use calloc() for
allocating and zero-out the array.
Signed-off-by: Lukas Czerner <lczerner@redhat.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'misc/jfs_user.h')
0 files changed, 0 insertions, 0 deletions