Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

fwcscmp(3) [debian man page]

fwcscmp(3)						     Library Functions Manual							fwcscmp(3)

NAME
fwcscmp - fuzzy comparison of two wide-character strings SYNOPSIS
#include <fstrcmp.h> #define FSTRCMP_IDENTICAL #define FSTRCMP_THRESHOLD #define FSTRCMP_ERROR double fwcscmp(const wchar_t *string1, const wchar_t *string2); DESCRIPTION
The fwcscmp() function compares the two wide-character strings, string1 and string2. RETURN VALUE
The fwcscmp function returns a floating point value between 0.0 and FSTRCMP_IDENTICAL. A value of 0.0 means the two wide-character strings are utterly un-alike. A value of FSTRCMP_IDENTICAL means the two wide-character strings are identical. A value of more than FSTR- CMP_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
fstrcmp(3) fuzzy comparison of two strings fwcscmpi(3) fuzzy comparison of two wide-character strings wcscmp(3) compare two wide-character 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 fwcscmp(3)

Check Out this Related 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)
Man Page

15 More Discussions You Might Find Interesting

1. Filesystems, Disks and Memory

comparison

can anyone point me to a comparison of *nix file systems ? i think i prefer a journalling fs but i would like to see a comparison between several fs's before i make up my mind (2 Replies)
Discussion started by: cnf
2 Replies

2. Shell Programming and Scripting

comparison problem

Hi, Is there any limitation on the no of characters to be compared using the if statement in Unix. We had an issue while comparing the following two nos. var1=20051031222900 & var2=20051101003545. The last six dgits are the time stamp for a day. The if statement is like this: if then move... (8 Replies)
Discussion started by: ranj@chn
8 Replies

3. Programming

comparison between pointer and integer

I received a warning when I tried to compile my program that said: warning: comparison between pointer and integer Could you please explain to me what this means, and in what ways I could possibly fix this? Thanks for your help! (2 Replies)
Discussion started by: sjung10
2 Replies

4. Shell Programming and Scripting

Timestamp comparison

Hi all, below is my sample log file 02.20.38 .CASH_I_0069 RPM_RUN_DISTRIBUTION RPM_RUN_DISTRIBUTION 0001 1987 Started at 02.19.11 at node IEREDS17, Pid = 00492972 02.50.39 .CASH_I_0054 RPM_RUN_DISTRIBUTION RPM_RUN_DISTRIBUTION 0001 1987 Completed at 02.49.13, code: 00000000 at node IEREDS17,... (1 Reply)
Discussion started by: zainravi
1 Replies

5. Shell Programming and Scripting

string comparison

Hello experts, (tcsh shell) Quite new to shell scripting... I have got a file with a single word on each line. Want to be able to make a comparison such that i can read pairs of words that are ROT13 to each other. Also, i would like to print the pairs to another file. Any help... (5 Replies)
Discussion started by: Jatsui
5 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. UNIX for Dummies Questions & Answers

Getting strings before and after a character

OK This one has me stumped. I have the following line, program name - the program description that can also contain a hyphen - character. I'm need to separate the "program name" from the program description. I've tried using an array function with the - as delimiter, but I ran into a... (2 Replies)
Discussion started by: ricksj
2 Replies

9. Shell Programming and Scripting

set boolean after comparison

Hi there, Sorry if the title doesn't mean much to you, I don't know how to sum up my pb in one line. I'd like to set a value to 0 or 1 depending on the result of a comparison. Here's what I do: supernova:~# a= supernova:~# isempty=$(] && echo 1 || echo 0) supernova:~# echo $isempty 1... (4 Replies)
Discussion started by: chebarbudo
4 Replies

10. Shell Programming and Scripting

Sequential comparison (one row with file and so on)

Dear linux experts, I'd like to ask for your support, I've read some posts in this forum about files comparison but haven't found what I'm looking for. I need to create a sequential script to compare row-by-row one file with 34 similar files but without success so far. This is what I get: ... (2 Replies)
Discussion started by: Gery
2 Replies

11. 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

12. 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

13. UNIX for Dummies Questions & Answers

character-by-character comparison of strings

This might be a dummy question, but is there a command in UNIX that compare two strings character-by-character and display the difference? ---------- Post updated at 11:25 AM ---------- Previous update was at 10:32 AM ---------- Or probably what I'm looking is how to break a string into... (3 Replies)
Discussion started by: Orbix
3 Replies

14. 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

15. Shell Programming and Scripting

Search a text and return the text from file

Hi I have a set of input strings in a pattern as given below string1 string2 string3 string4 string5 I need to search this sequence of strings from a file in such a way that the first two strings (string1 and string2) and last two strings (string4 and string5) should match with the... (8 Replies)
Discussion started by: my_Perl
8 Replies