fmemcmp(3) Library Functions Manual fmemcmp(3)NAME
fmemcmp - fuzzy comparison of two memory areas
SYNOPSIS
#include <fstrcmp.h>
#define FSTRCMP_IDENTICAL
#define FSTRCMP_THRESHOLD
#define FSTRCMP_ERROR
double fmemcmp(const void *data1, size_t size1, const void *data2, size_t size2);
DESCRIPTION
The fmemcmp() function compares the two memory areas, the size1 bytes pointed to by data1 and the size2 bytes pointed to by data2.
RETURN VALUE
The fmemcmp function returns a floating point value between 0.0 and FSTRCMP_IDENTICAL. A value of 0.0 means the memory areas are utterly
un-alike. A value of FSTRCMP_IDENTICAL means the memory areas are identical. A value of more than FSTRCMP_THRESHOLD (it lies between 0.0
and FSTRCMP_IDENTICAL) would be considered "similar" by most people.
A value of FSTRCMP_ERROR (always negative) indicates a malloc(3) failure.
SEE ALSO fmemcmpi(3)
fuzzy comparison of two memory areas
fstrcmp(3)
fuzzy comparison of two strings
memcmp(3)
compare memory areas
COPYRIGHT
fstrcmp version 0.4
Copyright (C) 2009 Peter Miller
Peter Miller <pmiller@opensource.org.au>
The comparison code is derived from the fuzzy comparison functions in GNU Gettext 0.17. The GNU Gettext comparison functions were, in
turn, derived from GNU Diff 2.7.
Copyright (C) 1988-2009 Free Software Foundation
fmemcmp(3)
Check Out this Related Man Page
fstrcmp(3) Library Functions Manual fstrcmp(3)NAME
fstrcmp - fuzzy comparison of two strings
SYNOPSIS
#include <fstrcmp.h>
#define FSTRCMP_IDENTICAL
#define FSTRCMP_THRESHOLD
#define FSTRCMP_ERROR
double fstrcmp(const char *string1, const char *string2);
DESCRIPTION
The fstrcmp() function compares the two strings, string1 and string2.
RETURN VALUE
The fstrcmp function returns a floating point value between 0.0 and FSTRCMP_IDENTICAL. A value of 0.0 means the strings are utterly un-
alike. A value of FSTRCMP_IDENTICAL means the strings are identical. A value of more than FSTRCMP_THRESHOLD (it lies between 0.0 and
FSTRCMP_IDENTICAL) would be considered "similar" by most people.
A value of FSTRCMP_ERROR (always negative) indicates a malloc(3) failure.
SEE ALSO fmemcmp(3)
fuzzy comparison of two memory areas
fstrcasecmp(3)
fuzzy comparison of two strings ignoring case
fstrcmpi(3)
fuzzy comparison of two strings
strcmp(3)
compare two strings
COPYRIGHT
fstrcmp version 0.4
Copyright (C) 2009 Peter Miller
Peter Miller <pmiller@opensource.org.au>
The comparison code is derived from the fuzzy comparison functions in GNU Gettext 0.17. The GNU Gettext comparison functions were, in
turn, derived from GNU Diff 2.7.
Copyright (C) 1988-2009 Free Software Foundation
fstrcmp(3)
Hi all
If I have lines in a file as follows :-
/ora04/oradata/data1/data1.dbf
/ora01/app/product/8.1.6/dbs/F1.Dbf
/ora04/oradata/data2.dbf
How can I select the last part of the line as my file name. Can I start from the right and define "/" as my delimeter ?
Thx
J (3 Replies)
I have a string like
string_name = data1 data2 data3 ....
Now I need to take take these datas into individual variables such that I finally have something like
string1 = data1
string2 = data2
string3 = data3 (5 Replies)
Hello all,
I have two files:
file1:
data1 data2 data3
data4 data5 data6
data7 data8 data9
file2:
reference
I need to paste both files with the following output:
data1 data2 data3 reference
data4 data5 data6 reference
data7 data8 data9 reference
I tried using the paste... (3 Replies)
Hi
I have to replace value data1 by data2 where existing inside all the files on directory and subdirectories /data/bin
Is it working using find and sed in combination. Does sed also working looking in directories?
would be nice if you have any suggestions.
Thanks Reto (5 Replies)
Hi All,
Can some one tell me how to get run the following:
data1="hello"
data2="world"
if
then
{
echo "good afternnon"
}
else
{
echo " good morning"
}
fi
The above code gives me an error ad below :
./if.h: line 3: ' (7 Replies)
Hello all,
Can anyone help me with this.
There are two files and I have to match the second file records with that of first and if matched, print the output in two fies, one containing the matched records and other containing the rest.
Here is the example.
File1
"111",erter,"00000", ... (4 Replies)
hi all,
i have file as below:
N000150100B00|1
N000150100B00|3
E0P2C42100000|2
E0P2C42100000|3
N000150100B00|2
N000150100B00|4
E0P2C42100000|3
E0P2C42100000|3
E0P2C42100000|6
now i want to compare 1st field of all rows with all other row's first field
and if they are same then i... (2 Replies)
Hi Scripting gurus,
I need to convert following text snippet into csv. please help
Input
heading1 = data1
heading2 = data2
..
..
heading n = data n
heading 1 = data1
..
..
Output
data1,data2,....,data n (3 Replies)
Hello,
I am trying to compare two variables, which both have a word stored in it.
The code I am using is. Please tell me which one of these is correct.Or please tell me the correct syntax.
Thankyou
if then
if then
if then
if then
if then
None of them seems to work... (3 Replies)
Discussion started by: Freakhan
3 Replies
10. Post Here to Contact Site Administrators and Moderators
How do I turn off the "clouds" which appear at the bottom of the screen?
Currently I have a "tag cloud" which serves no useful purpose except to make future Google searches fuzzy. (3 Replies)
Hi friends,,,
for comparison purpose i need to use nested loop....pls give one example..as I have confusion while file reading..my code looks somewhat like this..
awk 'FNR==NR{
{ getline < "file.dat" ; la=$1 }
{ getline < "file.dat" ; lo=$2 }
{ getline < "file.dat" ;... (4 Replies)
Dear all, could you help me with following question. There are two datasets (below). I need to find match between BP values from data1 and data2, and add corresponding CM value from data2 into data1. if there is not exact match, the corresponding CM value should be calculated using interpolation.... (20 Replies)