Update 'cv7/a_station.c'
This commit is contained in:
parent
42366aaf34
commit
8959ee7231
@ -25,12 +25,12 @@ void destroy_station(struct station* station){
|
||||
}
|
||||
|
||||
int select_track(struct station* station, const char* target){
|
||||
if (target[0] >= 'A' && target[0] <= 'Z') {
|
||||
if (isalpha(target[0])) {
|
||||
if (isupper(target[0])) {
|
||||
return target[0] - 'A';
|
||||
|
||||
} else if (target[0] >= 'a' && target[0] <= 'z') {
|
||||
} else {
|
||||
return target[0] - 'a';
|
||||
|
||||
}
|
||||
} else {
|
||||
return 0;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user