Commit Graph

8 Commits

Author SHA1 Message Date
Frank Denis
5a57615f44 print_hex() is always followed by putc('\n'), so let it do it directly 2015-05-27 21:04:32 +02:00
Frank Denis
944857bbf5 The first line already said these were utility functions, just like the file name 2015-05-27 21:01:57 +02:00
Frank Denis
596c65c745 r -> ret 2015-05-27 21:01:49 +02:00
Frank Denis
a313e0be66 Demos: let prompt_input() add extra \n itself 2015-05-27 20:53:54 +02:00
Frank Denis
9060457fac Make prompt_input accept fixed-length and variable-length input.
Now that strings have the correct size, but no trailing \0, puts() cannot safely be
used any more.
2015-05-27 18:10:28 +02:00
Frank Denis
8920cde3a3 Use meaningful variable names instead of having to comment them 2015-05-27 16:29:57 +02:00
Frank Denis
67305902ee DRY 2015-05-27 16:10:07 +02:00
Frank Denis
a748029632 demo_utils -> utils for consistency with other demo files 2015-05-27 15:47:49 +02:00