Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

fmemcmp(3) [debian man page]

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)
Man Page

15 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Field identification starting from the right

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)
Discussion started by: jhansrod
3 Replies

2. UNIX for Dummies Questions & Answers

String Parsing help

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)
Discussion started by: jasjot31
5 Replies

3. UNIX for Dummies Questions & Answers

paste 2 files ( it is possible???)

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)
Discussion started by: mig28mx
3 Replies

4. UNIX for Dummies Questions & Answers

exchange data1 with data2 on files for all subdirectories

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)
Discussion started by: goldenglobe
5 Replies

5. Shell Programming and Scripting

using && in if statement ..

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)
Discussion started by: jisha
7 Replies

6. UNIX for Dummies Questions & Answers

file comparison...help needed.

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)
Discussion started by: er_ashu
4 Replies

7. UNIX for Dummies Questions & Answers

how to combine after comparison

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)
Discussion started by: pranav.pandya
2 Replies

8. Shell Programming and Scripting

convert this into csv using awk/shell script

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)
Discussion started by: azs0309
3 Replies

9. Shell Programming and Scripting

variable comparison

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 to turn of "clouds"

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)
Discussion started by: methyl
3 Replies

11. Shell Programming and Scripting

My Cronjob is not running

I created a script, size=`du -sm` size=`echo $size | sed 's/.$//'` size1='30720' if then { find /ask/tarballs -type f -name "*.tgz" -mtime +30 -exec ls -l {} \; find /ask/tarballs -type f -name "*.tgz" -mtime +30 -exec rm -f {} \; } else echo "Directory size doesnt exceed Threshold... (12 Replies)
Discussion started by: shaal89
12 Replies

12. Shell Programming and Scripting

adding one more column in a loop

data1 1 0.01 3 5 1 0.6 2 1 data2 2 0.02 3 5 2 0.3 2 1 data3 3 0.01 3 5 3 0.01 2 1 output 1 0.01 data1 2 0.02 data2 3 0.01 data3 3 0.01 data3 I want to print 1st, 2nd column and the filename when second column is less than 5. (3 Replies)
Discussion started by: johnkim0806
3 Replies

13. Shell Programming and Scripting

Looping for comparison

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)
Discussion started by: Akshay Hegde
4 Replies

14. UNIX for Dummies Questions & Answers

Interpolation if there is no exact match for value

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)
Discussion started by: kush
20 Replies

15. UNIX for Dummies Questions & Answers

Whence

whence command used for. can you please provide the example of whence command. (8 Replies)
Discussion started by: ramkumar15
8 Replies