~ubuntu-branches/ubuntu/gutsy/avr-libc/gutsy

« back to all changes in this revision

Viewing changes to libc/stdio/puts.c

  • Committer: Bazaar Package Importer
  • Author(s): Hakan Ardo
  • Date: 2006-11-15 21:12:47 UTC
  • mfrom: (3.1.2 feisty)
  • Revision ID: james.westby@ubuntu.com-20061115211247-b7qhgnb6o49v5zsg
Tags: 1:1.4.5-2
* Convertion to debheler fixed (closes: #398220)
* Reference to /usr/share/common-licenses in copyright file

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
  POSSIBILITY OF SUCH DAMAGE.
28
28
*/
29
29
 
30
 
/* $Id: puts.c,v 1.2 2002/12/26 21:48:13 joerg_wunsch Exp $ */
 
30
/* $Id: puts.c,v 1.3 2005/09/06 18:49:15 joerg_wunsch Exp $ */
31
31
 
32
32
#include <stdio.h>
33
33
 
43
43
                return EOF;
44
44
 
45
45
        while ((c = *str++) != '\0')
46
 
                if (stdout->put(c) != 0)
 
46
                if (stdout->put(c, stdout) != 0)
47
47
                        rv = EOF;
48
 
        if (stdout->put('\n') != 0)
 
48
        if (stdout->put('\n', stdout) != 0)
49
49
                rv = EOF;
50
50
 
51
51
        return rv;