Changeset 49b2dc3 in mainline


Ignore:
Timestamp:
2008-08-22T10:31:04Z (16 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ab00d5a
Parents:
216d6fc
Message:

printf_putstr() must return the number of characters printed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/libc/generic/io/printf_core.c

    r216d6fc r49b2dc3  
    9595                return printf_putnchars("(NULL)", 6, ps);
    9696
    97         for (count = 0; str[count] != 0; count++);
    98 
    99         if (ps->write((void *) str, count, ps->data) == count)
    100                 return 0;
    101        
    102         return EOF;
     97        count = strlen(str);
     98
     99        return ps->write((void *) str, count, ps->data);
    103100}
    104101
Note: See TracChangeset for help on using the changeset viewer.