home *** CD-ROM | disk | FTP | other *** search
/ C by Discovery (4th Edition) / C_By_Discovery_4th_Edition.tar / C_By_Discovery_4th_Edition / _HANDBOOK_ / APDX_F / F-22.jpg < prev    next >
Joint Photographic Experts Group Image  |  2013-12-18  |  611KB  |  2550x3300
Labels: book | computer | crt screen | desk | monitor | poster | reckoner | screen | skyscraper
OCR: F-22 Programmer's Handbook Functions That Manage Memory Allocation call Loc( num size allocates block of memory large enough to hold num objects of size size. Parameters num the number of "items for which to allocate memory: size the size of each item Both parameters have type size Return value the address of the allocated memory block of num size bytes ora NULL pointer memory cannot be allocated. Note that the return type is void The value returned should bc cast to pointer to the appropriate type so that the pointer arithmetic will behave correctly Example See calloc.c (Section 11.5 and linklist.c (Section 11.6. malloc size allocates block of memory with size bytes Parameters size has type size the number of bytes to be allocated Return value the address of the allocated block of memory ...