![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Why memory allocated through malloc should be freed ? | karthiktceit | High Level Programming | 20 | 09-08-2009 12:07 PM |
| amount of memory allocated to large page | daveisme | AIX | 1 | 09-08-2009 09:46 AM |
| How to find memory size on solaris zone | mokkan | SUN Solaris | 1 | 01-21-2009 12:14 PM |
| Changing the mouse pointer size in CDE | sriram.s | SUN Solaris | 0 | 03-01-2007 07:03 AM |
| Memory allocated | baanprog | SUN Solaris | 1 | 05-04-2006 10:06 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
how to find size of memory allocated to a pointer?
Hi,
Am new to HP UX , is there a way to find out the size of memory allocated to a pointer on hp ux? For example we can use the _msize() on windows to find the size of memory allocated to a pointer . #include <stdio.h> #include <malloc.h> void main() { void *buffer; buffer = malloc( 999 ); printf( "Size of block is %u bytes\n", _msize( buffer ) ); } produces the output: Size of block is 1000 bytes Is there any way this can be done on HP UX too?Thank you very much in advance.Regards |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|