|
-
July 30th, 2002, 02:34 PM
#1
Incrementing a Void Pointer
Is there any way to increment a void pointer? I know you can't do it directly. I was trying something like this, but it didn't work:
void *ptr = &var;
char *c;
c = ptr; //This is where I got an error
c++;
ptr = c;
Does anyone have an idea of how to do this?
John Stanford
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
|