Guest_imported
New member
- Jan 1, 1970
- 0
Hello everyone,
I am trying to do something of this sort:
meaning I want astring to be exactly the size that string is. But the sizeof operator always returns 3 bytes. Is it returning the size of the pointer instead of the memory it points to? Any suggestions on how to make this work?
Thanks for u'r help,
SS
I am trying to do something of this sort:
Code:
int foo( char * string )
{
char astring[ sizeof(string) ];
....
}
Thanks for u'r help,
SS