-
June 3rd, 2004, 09:34 AM
#1
memory allocation
Hi everybody,
I would like to create a function which could allocate memory for any of pointer of pointer declared.
In my class C, i consider 2 pointers of pointers : **p and **q ( declared as public in class C), i would like to create a function AllocMemPointerOfPointer, which takes 3 input : RowSize, ColSize and Pointer. The function doesn't return value. It just allocate memory for Pointer, which is a pointer on RowSize pointers of any type .
How could i do that without allocate memory to a "copy" of Pointer ?
I hope my question is clear ! if not, feel free to ask me more informations !
Thanks in advance for your answers
Gerald
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|