/*************************************************************** * * linebreaks.h * * ChooseLineBreaks (n, L, M, B) * chooses where to break the n words whose lengths are * given by L into lines of no more than M characters. * * n is the number of words in the paragraph to be printed. * L is an array of the word lengths. * M is the maximum length of a line, in characters. * B is an array of n booleans. Its contents are undefined * when ChooseLineBreaks is called. ChooseLineBreaks * sets B[i] to true if word i is the last word of a line * but is not the last word of the entire paragraph. * Otherwise ChooseLineBreaks sets B[i] to false. * **************************************************************/ extern void ChooseLineBreaks (int, int[], int, int[]);