aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/paste/paste.c
Commit message (Collapse)AuthorAgeFilesLines
* WARNS=6 chocked on unitialized variable.Philippe Charnier2006-09-121-1/+1
| | | | Notes: svn path=/head/; revision=162239
* Add support for multibyte characters in input files and delimiterTim J. Robbins2004-06-251-26/+47
| | | | | | | | | strings (arguments to the -d option.) This involves backing out paste.c rev. 1.13 until we have a version of fgetln() that operates on wide character streams. Notes: svn path=/head/; revision=131076
* Use fgetln(3) to handle lines of unlimited length instead of aTim J. Robbins2002-05-241-15/+15
| | | | | | | | | getc/putc loop. Suggested by: dd Notes: svn path=/head/; revision=97233
* P1003.2 forbids imposing any limit on line lengths; read character byTim J. Robbins2002-05-241-24/+22
| | | | | | | character instead of manually buffering each line. Notes: svn path=/head/; revision=97230
* Exit with non-zero status if any files specified could not be openedTim J. Robbins2002-05-241-9/+15
| | | | | | | when -s option is given (SUSv3). Notes: svn path=/head/; revision=97223
* Clean up malloc(3)'s argument. Remove casts which do nothing when we'reJuli Mallett2002-05-171-2/+2
| | | | | | | | | | using sizeof() anyway. Use slightly more consistent (per-file) error reporting for malloc(3) returning NULL. If "malloc failed" was being printed, don't use err(3). If a NULL format is being used, use err(3). In one case errx(3) was being used with strerror(3), so just use err(3). Notes: svn path=/head/; revision=96785
* More low hanging warnings fruit; ANSIfy, de-register, constify.Mark Murray2002-04-281-19/+17
| | | | Notes: svn path=/head/; revision=95626
* remove __PWarner Losh2002-03-221-4/+4
| | | | Notes: svn path=/head/; revision=92921
* When invoked with no file arguments, display usage.Mike Barcroft2002-03-201-4/+7
| | | | | | | | | | Submitted by: Tim J. Robbins <tim@robbins.dropbear.id.au> PR: 36074 Use new ID scheme. Notes: svn path=/head/; revision=92772
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50477
* Add #include <stdlib.h> to get prototype for malloc(). Without this,John Birrell1998-02-201-1/+2
| | | | | | | | the compiler assumes an int return. On alpha this is enough to ruin ya day. Notes: svn path=/head/; revision=33644
* Remove bogus malloc() decl.Satoshi Asami1997-08-051-2/+2
| | | | Notes: svn path=/head/; revision=27907
* Use err(3). Add prototypes. Silent -Wall.Philippe Charnier1997-07-311-36/+34
| | | | Notes: svn path=/head/; revision=27787
* compare return value from getopt against -1 rather than EOF, per the finalWarner Losh1997-03-291-1/+1
| | | | | | | posix standard on the topic. Notes: svn path=/head/; revision=24360
* BSD 4.4 Lite Usr.bin SourcesRodney W. Grimes1994-05-271-0/+251
Notes: svn path=/cvs2svn/branches/CHRISTOS/; revision=1590