Im trying to initialize code with keyCode and id with keyId respectively. Why do I get ['strcpy' makes integer from pointer without cast]?
Code:Key * ky_new(const char * keyCode, int keyId)
{
Key * ky = (Key *)malloc(sizeof(Key));
if (ky != NULL)
{
strcpy(ky->code , keyCode);
ky->id = keyId;
}
return ky;
}