This repository has been archived on 2021-10-31. You can view files and clone it, but cannot push or open issues or pull requests.
sys_prog/sortlines
Claudio Maggioni (maggicl) 4b96df1d81 Added documentation
2019-07-26 00:13:50 +02:00
..
README.md Added documentation 2019-07-26 00:13:50 +02:00
sortlines.c Done sort-lines exercise 2019-07-26 00:05:56 +02:00

sortlines

Write a program called sortlines that reads one line at a time from the standard input, and outputs the sequence of words in each line sorted in lexicographical order. A word is a (maximal) contiguous sequence of alphabetic characters as defined by the isalpha library function. The output sequence for each line should be printed on a single line with each word separated by one space. An input line is guaranteed to be at most 1000 characters.