Changeset c9857c6 in mainline for libc/generic/string.c


Ignore:
Timestamp:
2006-04-12T10:21:01Z (19 years ago)
Author:
Josef Cejka <malyzelenyhnus@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f30e6a0b
Parents:
fcd10af
Message:

Printf support for width and precision modifiers.
Several necessary helping functions added.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libc/generic/string.c

    rfcd10af rc9857c6  
    2727 */
    2828
    29 #include <types.h>
    3029#include <string.h>
    3130
     
    4847        return dest;
    4948}
     49
     50size_t strlen(const char *str)
     51{
     52        int counter = 0;
     53
     54        while (str[counter] != 0) {
     55                counter++;
     56        }
     57
     58        return counter;
     59}
Note: See TracChangeset for help on using the changeset viewer.