Changeset 523fad8 in mainline for libc


Ignore:
Timestamp:
2006-04-16T13:18:43Z (19 years ago)
Author:
Josef Cejka <malyzelenyhnus@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
da32cea
Parents:
9426c1a3
Message:

Bugfix in printf, some support for testing.

Location:
libc/generic
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libc/generic/io/print.c

    r9426c1a3 r523fad8  
    6969 * @return number of printed characters or EOF
    7070 */
    71                                                
    7271static int print_char(char c, int width, uint64_t flags)
    7372{
    7473        int counter = 0;
    75         char space = ' ';
    7674       
    7775        if (!(flags & __PRINTF_FLAG_LEFTALIGNED)) {
     
    257255                                        putchar('b');
    258256                                }
    259                                 written == 2;
     257                                written += 2;
    260258                                break;
    261259                        case 8:
  • libc/generic/string.c

    r9426c1a3 r523fad8  
    5050size_t strlen(const char *str)
    5151{
    52         int counter = 0;
     52        size_t counter = 0;
    5353
    5454        while (str[counter] != 0) {
Note: See TracChangeset for help on using the changeset viewer.