~ubuntu-branches/ubuntu/utopic/coreutils/utopic-proposed

« back to all changes in this revision

Viewing changes to src/fold.c

  • Committer: Package Import Robot
  • Author(s): Colin Watson
  • Date: 2012-11-28 03:03:42 UTC
  • mfrom: (8.3.4 sid)
  • Revision ID: package-import@ubuntu.com-20121128030342-21zanj8354gas5gr
Tags: 8.20-3ubuntu1
* Resynchronise with Debian.  Remaining changes:
  - Make 'uname -i -p' return the real processor/hardware, instead of
    unknown.
  - Build-depend on gettext:any instead of on gettext, so that apt-get can
    properly resolve build-dependencies on the tool when cross-building.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* fold -- wrap each input line to fit in specified width.
2
 
   Copyright (C) 1991, 1995-2006, 2008-2011 Free Software Foundation, Inc.
 
2
   Copyright (C) 1991-2012 Free Software Foundation, Inc.
3
3
 
4
4
   This program is free software: you can redistribute it and/or modify
5
5
   it under the terms of the GNU General Public License as published by
30
30
 
31
31
#define TAB_WIDTH 8
32
32
 
33
 
/* The official name of this program (e.g., no `g' prefix).  */
 
33
/* The official name of this program (e.g., no 'g' prefix).  */
34
34
#define PROGRAM_NAME "fold"
35
35
 
36
36
#define AUTHORS proper_name ("David MacKenzie")
60
60
usage (int status)
61
61
{
62
62
  if (status != EXIT_SUCCESS)
63
 
    fprintf (stderr, _("Try `%s --help' for more information.\n"),
64
 
             program_name);
 
63
    emit_try_help ();
65
64
  else
66
65
    {
67
66
      printf (_("\
124
123
  FILE *istream;
125
124
  int c;
126
125
  size_t column = 0;            /* Screen column where next char will go. */
127
 
  size_t offset_out = 0;        /* Index in `line_out' for next char. */
 
126
  size_t offset_out = 0;        /* Index in 'line_out' for next char. */
128
127
  static char *line_out = NULL;
129
128
  static size_t allocated_out = 0;
130
129
  int saved_errno;