The UNIX and Linux Forums
>
Top Forums
>
UNIX for Advanced & Expert Users
memset vs calloc
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
memset vs calloc
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
4
(
permalink
)
07-16-2008
osulinux
Registered User
Join Date: Jun 2008
Posts: 31
calloc() is usually used to create arrays. It's sort of like malloc() in that it allocates memory, but calloc() as shamrock points out sets the allocated memory to 0.
The effect of calloc() is the same as doing malloc() followed by memset().
osulinux
View Public Profile
Find all posts by osulinux
Find osulinux's past nominations received
Find osulinux's present nominations given