Fix two bugs related to command execution:
[dockapps.git] / wmweather+ / b0rken / memcmp.c
blobe4a8a5b2e0650d58a67b94d11afe6c3ecd93b925
1 /* Cheapo version of memcmp */
3 #include <stdlib.h>
5 int memcmp(const void *s1, const void *s2, size_t n){
6 int i, j;
8 for(i=0; i<n; i++){
9 j=((unsigned char *)s1)[i]-((unsigned char *)s2)[i];
10 if(j) return j;
12 return 0;