Hello,
I am trying to search a UCHAR array for the word DVD.
calc functionCode:UCHAR VolumeIdentifier[32]; calc(*VolumeIdentifier);
The error is on each if statement. Error = invalid types UCHAR[int] for array subscript.Code:void calc(UCHAR VolumeIdentifier) { for(int i = 0; i < 30; i++) { if(VolumeIdentifier[i] == 'D') { if(VolumeIdentifier[i + 1] == 'V') { if(VolumeIdentifier[i + 2] == 'D') { counter++; } } } } }
Does anyone know what would work?
Many thanks!