3 ms·
Here's the version used in OS X. It's a bit bigger but not GNUishly big. http://www.opensource.apple.com/source/text_cmds/text_cmds-87/head/head.c http://www.o
by Flow 12y ago
Here's the version used in OS X. It's a bit bigger but not GNUishly big.
http://www.opensource.apple.com/source/text_cmds/text_cmds-87/head/head.c http://www.opensource.apple.com/source/text_cmds/text_cmds-8...
- justincormack 12y agoThat's almost certainly the FreeBSD one.
- userbinator 12y agoLooks like a small extension to the BSD one, that can also handle head'ing by byte count. (Although I think the use of malloc() and strcpy() to handle the -[0-9]+ case seems rather unnecessary...)