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


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

File:
1 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
Note: See TracChangeset for help on using the changeset viewer.