struct PhaseShiftPin {
int _PSPpin_index; //PSP = Phase Shift Pin
int _PSPvalue;
char _PSPname[512];
};
struct PhaseShiftPin *_PhaseShiftPin[500000];
int p3int = 0;
strcpy ( _PhaseShiftPin[i]->_PSPvalue, p3int );
The above code is just part of my full code. When I compiled my full program happened an error strcpy' makes pointer from integer without a cast which is at line
strcpy ( _PhaseShiftPin[i]->_PSPvalue, p3int );
I have referred to the post at here makes pointer from integer without a cast with strcpy after I tried to use strncpy and follow the method showed in the post I still fail in compilation.Hope you can guide me with my problem.Thanks.