Initializacia

This commit is contained in:
Kozar 2024-11-08 13:24:45 +00:00
parent b33f7a0db3
commit 1bd6f8da28

View File

@ -1,3 +1,4 @@
#include <stdio.h>
#include "a_station.h"
#include <stdlib.h>
#include <string.h>
@ -23,7 +24,14 @@ void destroy_station(struct station* station){
}
int select_track(struct station* station, const char* target){
size_t length = strlen(target);
int sum = 0;
for (size_t i = 0; i < length; i++) {
sum += target[i];
}
return sum % station->track_count;
}
void add_target_capacity(struct station* station,const char* target, int capacity){
}