Numworks Epsilon
1.4.1
Graphing Calculator Operating System
memcmp.c
Go to the documentation of this file.
1
#include <string.h>
2
3
int
memcmp
(
const
void
* s1,
const
void
* s2,
size_t
n) {
4
char
* source1 = (
char
*)s1;
5
char
* source2 = (
char
*)s2;
6
while
(n--) {
7
if
(*source1 != *source2) {
8
return
*source1 - *source2;
9
}
10
source1++;
11
source2++;
12
}
13
return
0;
14
}
memcmp
int memcmp(const void *s1, const void *s2, size_t n)
Definition:
memcmp.c:3
epsilon
liba
src
memcmp.c
Generated by
1.8.14