debian man page for naturalstrcmp

Query: naturalstrcmp

OS: debian

Section: 3

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

NATURALSTRCMP(3)					       MBK UTILITY FUNCTIONS						  NATURALSTRCMP(3)

NAME
naturalstrcmp - compare string in alphabetical order for letters and numerical for digits.
ORIGIN
This software belongs to the ALLIANCE CAD SYSTEM developed by the ASIM team at LIP6 laboratory of Universite Pierre et Marie CURIE, in Paris, France. Web : http://asim.lip6.fr/recherche/alliance/ E-mail : alliance-users@asim.lip6.fr
SYNOPSYS
#include "mut.h" int naturalstrcmp(s, t) char *s, *t;
PARAMETERS
s Pointer to the first string to compare t Pointer to the second string to compare
DESCRIPTION
naturalstrcmp is an alphanumerical comparison function that ensures x12 > x2 for example. First, the alphabetical part of the string is compared, using strcmp(3), then, if it has trailing numbers, they are compared using a numerical function.
RETURN VALUES
naturalstrcmp has the same return values than the standard library strcmp(3) function.
EXAMPLE
#include "mut.h" static int connectorcmp(flc, slc) locon_list **flc, **slc; { return naturalstrcmp((*slc)->NAME, (*flc)->NAME); }
SEE ALSO
mbk(1), strcmp(3).
BUG REPORT
This tool is under development at the ASIM department of the LIP6 laboratory. We need your feedback to improve documentation and tools.
ASIM
/LIP6 October 1, 1997 NATURALSTRCMP(3)
Related Man Pages
freeptype(3) - debian
upstr(3) - debian
mbk_separ(1) - sunos
freechain(3) - centos
freeptype(3) - posix
Similar Topics in the Unix Linux Community
problem in string comparison in shell programming
How can I list the file under a directory both in alphabetical and in reverse alphabetical order?
multiple word check
Need to compare numbers in alphanumeric string