Changeset c0535f80 in mainline


Ignore:
Timestamp:
2006-05-14T08:17:10Z (19 years ago)
Author:
Jakub Vana <jakub.vana@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
57ff9ab
Parents:
672a24d
Message:

uspace strcmp

Location:
libc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libc/generic/string.c

    r672a24d rc0535f80  
    6767}
    6868
     69int strcmp(const char *a,const char *b)
     70{
     71        int c=0;
     72       
     73        while(a[c]&&b[c]&&(!(a[c]-b[c]))) c++;
     74       
     75        return a[c]-b[c];
     76       
     77}
     78
     79
     80
    6981/** Return pointer to the first occurence of character c in string
    7082 * @param str scanned string
  • libc/include/string.h

    r672a24d rc0535f80  
    3838void * memcpy(void *dest, void *src, size_t n);
    3939
     40int strcmp(const char *, const char *);
     41
    4042size_t strlen(const char *str);
    4143
Note: See TracChangeset for help on using the changeset viewer.