What we would like to say
We would like to use
append_char(s, c)
instead of
s += c
and similarly for append_str
Unfortunately, C gives us no way for a call to append_char(s, c) to change s
We'll settle for append_char(&s, c)
Previous slide
Next slide
Back to first slide
View graphic version