Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 2 additions & 11 deletions 15/projects/02/README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
### Project 15.01
### Project 15.02

The `justify` program of Section 15.3 justifies lines by inserting extra spaces
between words. The way the `write_line` function currently works, the words
closer to the end of a line tend to have slightly wider gaps between them than
the words at the beginning. (For example, the words closer to the end might have
three spaces between them, while the words closer to the beginning might be
separated by only two spaces.) Improve the program by having `write_line`
alternate between putting the larger gaps at the end of the line and putting
them at the beginning of the line.
Modify the justify.c program of section 15.3 by having the read_word function(instead of main) store the * character at the end of a word that's beeen truncated

### Solution