FIND SIZE OF MEMORY ALLOCATE???

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



How to find out the size of memory allocated to a pointer???

Example:

int
MyFunc(char *str)
{
	int sizemem;

	// Here how to find out the size of str memory ??
	
	sizemem =  _____    /// One function to find out the size of str memory .
}


--Kvim--





[Index of Archives]     [Kernel Newbies]     [Red Hat General]     [Fedora]     [Red Hat Install]     [Linux Kernel Development]     [Yosemite News]

  Powered by Linux