It simply copy whatever it gets from the standard input to the clipboard! So you can do things like:
c:\temp>dir | clip
And get the contents of dir output to the clipboard (and of course, now you can past it wherever you want)!
Of course you can also redirect the standard input:
c:\temp>clip < file.txt
(this post in portuguese)