diff options
Diffstat (limited to '')
-rw-r--r-- | src/main.c | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -5,9 +5,10 @@ #include "teams.h" #include "common.h" -// ref(type) references content is always const -// mut(type) references content is mutable -void process(const ref(char) line, unsigned idx, team obj) +// ref(type) -> const ref to const data +// mut(type) -> const ref to mut data +// ptr(type) -> mut ref to mut data +void process(ref(char) line, unsigned idx, team obj) { unsigned s; switch(idx) { @@ -35,7 +36,7 @@ int main() { unsigned num = 0, i = 0; char line[255] = ""; - team *teams; + ptr(team) teams; getline(line, 255, stdin); consume(line, 255, sscanf, "%u", &num); |