summaryrefslogtreecommitdiff
path: root/sys/src/cmd/fmt.c
AgeCommit message (Collapse)Author
2012-10-23fmt: improved version using less memorycinap_lenrek
functional identical, but uses different data structure. instead of reading all words into memory, we read and tokenize on demand keeping a simple linked list of words to conume by further calls of getword(). once the list is empty we read the next line, tokenize it and fill the list up again. so we only need as mutch memory to hold all the words of the longest line.
2011-03-30Import sources from 2011-03-30 iso image - libTaru Karttunen
2011-03-30Import sources from 2011-03-30 iso imageTaru Karttunen