cv6
This commit is contained in:
parent
3bc100aab9
commit
46c1d74183
@ -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){
|
||||
|
||||
Loading…
Reference in New Issue
Block a user