diff options
author | rsc <devnull@localhost> | 2003-11-23 18:23:20 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2003-11-23 18:23:20 +0000 |
commit | d7094239263eac816ebb3af32641079b7924c666 (patch) | |
tree | 61b016942d567560042adf110f5fb558dc328a98 /src/libip/equivip.c | |
parent | 99947423b136903263513b9022aab6586c8c6cc5 (diff) | |
download | plan9port-d7094239263eac816ebb3af32641079b7924c666.tar.gz plan9port-d7094239263eac816ebb3af32641079b7924c666.tar.bz2 plan9port-d7094239263eac816ebb3af32641079b7924c666.zip |
add libip
Diffstat (limited to 'src/libip/equivip.c')
-rw-r--r-- | src/libip/equivip.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/libip/equivip.c b/src/libip/equivip.c new file mode 100644 index 00000000..858bc1ca --- /dev/null +++ b/src/libip/equivip.c @@ -0,0 +1,13 @@ +#include <u.h> +#include <libc.h> + +int +equivip(uchar *a, uchar *b) +{ + int i; + + for(i = 0; i < 4; i++) + if(a[i] != b[i]) + return 0; + return 1; +} |