ae2f_docs
Fun.h File Reference

Go to the source code of this file.

Macros

#define ae2f_CmpFunRet_EQUAL   0
 they are same
#define ae2f_CmpFunRet_RISLESSER   1
 right is lesser
#define ae2f_CmpFunRet_LISLESSER   -1
 left is lesser

Typedefs

typedef int ae2f_CmpFunRet_t
 A predefined returning data type for ae2f_fpCmp_t.
typedef int(* ae2f_fpCmp_t) (const void *l, const void *r)
 It is an api for following approximate pseudo code.

Detailed Description

Author
ae2f
Date
2025-02-01

Definition in file Fun.h.

Macro Definition Documentation

◆ ae2f_CmpFunRet_EQUAL

#define ae2f_CmpFunRet_EQUAL   0

they are same

See also
ae2f_CmpFunRet_t

Definition at line 32 of file Fun.h.

◆ ae2f_CmpFunRet_LISLESSER

#define ae2f_CmpFunRet_LISLESSER   -1

left is lesser

See also
ae2f_CmpFunRet_t

Definition at line 40 of file Fun.h.

◆ ae2f_CmpFunRet_RISLESSER

#define ae2f_CmpFunRet_RISLESSER   1

right is lesser

See also
ae2f_CmpFunRet_t

Definition at line 36 of file Fun.h.

Typedef Documentation

◆ ae2f_CmpFunRet_t

typedef int ae2f_CmpFunRet_t

A predefined returning data type for ae2f_fpCmp_t.

See also
ae2f_CmpFunRet_EQUAL
ae2f_CmpFunRet_RISLESSER
ae2f_CmpFunRet_LISLESSER

Definition at line 19 of file Fun.h.

◆ ae2f_fpCmp_t

typedef int(* ae2f_fpCmp_t) (const void *l, const void *r)

It is an api for following approximate pseudo code.

const void *l, *r;
return *l - *r;
int l
Definition main.c:41
See also
ae2f_CmpFunRet_t

Definition at line 19 of file Fun.h.