This commit is contained in:
Bohdan Kapliuk 2024-11-03 17:04:43 +02:00
parent 3bc100aab9
commit 46c1d74183

View File

@ -27,7 +27,12 @@ void destroy_station(struct station* station){
}
int select_track(struct station* station, const char* target){
return 0;
unsigned long hash = 5381;
int c;
while (c = *str++)
hash = ((hash << 5) + hash) + c;
return hash;
}
void add_target_capacity(struct station* station,const char* target, int capacity){