Like any of these?
Code:
$ xsel | fold -w 50
Paragraphs are the building blocks of papers. Many
students define paragraphs in terms of length: a
paragraph is a group of at least five sentences, a
paragraph is half a page long, etc. In reality, t
hough, the unity and coherence of ideas among sent
ences is what constitutes a paragraph. A paragraph
is defined as “a group of sentences or a single
sentence that forms a unit” (Lunsford and Conno
rs 116). Length and appearance do not determine wh
ether a section in a paper is a paragraph. For ins
tance, in some styles of writing, particularly jou
rnalistic styles, a paragraph can be just one sent
ence long. Ultimately, a paragraph is a sentence o
r group of sentences that support one main idea. I
n this handout, we will refer to this as the “co
ntrolling idea,” because it controls what happen
s in the rest of the paragraph.
$ xsel | fold -w 100
Paragraphs are the building blocks of papers. Many students define paragraphs in terms of length: a
paragraph is a group of at least five sentences, a paragraph is half a page long, etc. In reality, t
hough, the unity and coherence of ideas among sentences is what constitutes a paragraph. A paragraph
is defined as “a group of sentences or a single sentence that forms a unit” (Lunsford and Conno
rs 116). Length and appearance do not determine whether a section in a paper is a paragraph. For ins
tance, in some styles of writing, particularly journalistic styles, a paragraph can be just one sent
ence long. Ultimately, a paragraph is a sentence or group of sentences that support one main idea. I
n this handout, we will refer to this as the “controlling idea,” because it controls what happen
s in the rest of the paragraph.
$ xsel | fold -w 120
Paragraphs are the building blocks of papers. Many students define paragraphs in terms of length: a paragraph is a group
of at least five sentences, a paragraph is half a page long, etc. In reality, though, the unity and coherence of ideas
among sentences is what constitutes a paragraph. A paragraph is defined as “a group of sentences or a single sentence
that forms a unit” (Lunsford and Connors 116). Length and appearance do not determine whether a section in a paper is
a paragraph. For instance, in some styles of writing, particularly journalistic styles, a paragraph can be just one sent
ence long. Ultimately, a paragraph is a sentence or group of sentences that support one main idea. In this handout, we w
ill refer to this as the “controlling idea,” because it controls what happens in the rest of the paragraph.
But there's no regard for punctuation or natural word breaks.
It literally just chops the input at a given number of characters.
If that's good, all you need is the size of buffer you want, and fgets/fread in a loop.