eg_compare.h File Reference


Detailed Description

Definition in file eg_compare.h.

#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <limits.h>
#include "eg_config.h"
#include "eg_macros.h"
#include "eg_mempool.h"

Include dependency graph for eg_compare.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
typedef int(* EGcompare_f )(const void *, const void *)
 comparison function type.
int EGdCompare (const void *str1, const void *str2)
 Normal order of integers.
int EGlfCompare (const void *str1, const void *str2)
 Normal order of doubles.
int EGptCompare (const void *str1, const void *str2)
 Normal order of pointers.
int EGstringCompare (const void *str1, const void *str2)
 Lexicographical order of strings.
int EGudCompare (const void *str1, const void *str2)
 Normal order of unsigned integers.


Typedef Documentation

typedef int(* EGcompare_f)(const void *, const void *)
 

comparison function type.

Description:
This type of function is intended to represent general comparison functions, the comparison function must return an integer less than, equal to, or greater than zero if the first argument is considered to be respectively less than, equal to, or greater than the second. Note that the standard function memcompare operate in the same sense.

Definition at line 52 of file eg_compare.h.


Function Documentation

int EGdCompare const void *  str1,
const void *  str2
 

Normal order of integers.

Description:
This function compare integers.

Definition at line 56 of file eg_compare.c.

int EGlfCompare const void *  str1,
const void *  str2
 

Normal order of doubles.

Description:
This function compare two double.

Definition at line 42 of file eg_compare.c.

int EGptCompare const void *  str1,
const void *  str2
 

Normal order of pointers.

Description:
This function compare pointers in 'memory' order.

Definition at line 80 of file eg_compare.c.

int EGstringCompare const void *  str1,
const void *  str2
 

Lexicographical order of strings.

Parameters:
str1 pointer to a stream of stirngs.
str2 pointer to a stream of stirngs.
Description:
This function compare two strings of (\0 terminated) chars in lexicographical order.

Definition at line 32 of file eg_compare.c.

int EGudCompare const void *  str1,
const void *  str2
 

Normal order of unsigned integers.

Description:
This function compare two unsigned integers.

Definition at line 70 of file eg_compare.c.


Generated on Mon Jan 30 08:49:26 2006 for EGlib by  doxygen 1.4.5