Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

byte_diff(3) [debian man page]

byte_diff(3)						     Library Functions Manual						      byte_diff(3)

NAME
byte_diff - compare two strings SYNTAX
#include <byte.h> int byte_diff(const char *one,size_t len,const char *two); DESCRIPTION
byte_diff returns negative, 0, or positive, depending on whether the string one[0], one[1], ..., one[len-1] is lexicographically smaller than, equal to, or greater than the string one[0], one[1], ..., one[len-1]. When the strings are different, byte_diff does not read bytes past the first difference. SEE ALSO
byte_equal(3) byte_diff(3)

Check Out this Related Man Page

STRCASECMP(3)						   BSD Library Functions Manual 					     STRCASECMP(3)

NAME
strcasecmp, strncasecmp -- compare strings, ignoring case LIBRARY
Standard C Library (libc, -lc) SYNOPSIS
#include <strings.h> int strcasecmp(const char *s1, const char *s2); int strncasecmp(const char *s1, const char *s2, size_t len); DESCRIPTION
The strcasecmp() and strncasecmp() functions compare the nul-terminated strings s1 and s2 and return an integer greater than, equal to, or less than 0, according to whether s1 is lexicographically greater than, equal to, or less than s2 after translation of each corresponding character to lower-case. The strings themselves are not modified. The comparison is done using unsigned characters, so that '200' is greater than ''. The strncasecmp() compares at most len characters. SEE ALSO
bcmp(3), memcmp(3), strcmp(3), strcoll(3), strxfrm(3) HISTORY
The strcasecmp() and strncasecmp() functions first appeared in 4.4BSD. NOTES
If len is zero strncasecmp() returns always 0. BSD
June 9, 1993 BSD
Man Page

5 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

disk usage (df vs du)

displaying the disk usage using df and displaying the disk usage using du -sk gives me different results: 1st case: df -k |grep users 2nd case: cd /users; du -sk sometimes this difference is 50 gigabyte!!! do you have any idea about this situation? (8 Replies)
Discussion started by: gfhgfnhhn
8 Replies

2. AIX

rcp gets hung for long time

Every evening I run a script in AIX production box, which executes below command: rcp prod_bkup.tar prodapp@IP:/data/appl/prod This will rcp a backup of around 11 GB from production to another machine (runs every evening so overwrites previous one). Just to keep the backup safe. Since 2-3 days,... (0 Replies)
Discussion started by: panchpan
0 Replies

3. Shell Programming and Scripting

Help with displaying difference between two arrays (Bash)

The code I have is kind of long, so I'm just posting the part I'm struggling with. I've found many examples online of comparing two arrays in Bash and printing the difference between them. I've tried them all, even mixed and matched some examples with no luck. I know this can't be as hard as I'm... (9 Replies)
Discussion started by: Azrael
9 Replies

4. Programming

libcvd install problem

Hi I'm trying to install libcvd libraries (running Ubuntu 10.10) but get errors, I guesss its saying I miss dc1394v1 and ffmpeg. Altough when looking in synaptic manager I appear to have ffmpeg and libdc1394 (version 2). When I do ./config, after all the checks, I get: Options:... (3 Replies)
Discussion started by: mdop
3 Replies

5. Programming

Help with djbdns code

Hi, I need help to rewrite djbdns source code to accept 1024 bytes via UDP (limit is 512) #include <stdio.h> #include <unistd.h> #include <sys/types.h> #include <sys/stat.h> #include "uint16.h" #include "uint32.h" #include "str.h" #include "byte.h" #include "fmt.h" #include "ip4.h"... (0 Replies)
Discussion started by: cain82
0 Replies