error C2040: 'memset'

Mar 27, 2014 at 10:57am
error C2040: 'memset' : 'void *(void *,int ,unsigned int )' differs in levels of indirection from 'void *(void *,int ,unsigned int )'

This file was included. #include <string.h>

Let me know what is wrong.
Mar 27, 2014 at 2:30pm
I think your problem is on line 17.
Mar 27, 2014 at 2:32pm
Please provide detail
Mar 27, 2014 at 2:32pm
But I'm certain you haven't given that function the address of the memory you want set.
Mar 27, 2014 at 2:33pm
Error is being shown in string.h
Mar 27, 2014 at 4:00pm
Please provide detail


Ironic...
Mar 27, 2014 at 4:06pm
I am getting the above message as error in a C file where I have include string.h and other files.
Mar 27, 2014 at 4:10pm
"My car won't start, how do I fix it?"
"Can you tell me more?"
"My car won't start when I turn the key, how do I fix it?"
Topic archived. No new replies allowed.