Thanks to visit codestin.com
Credit goes to code.neomutt.org

NeoMutt  2025-12-11-189-gceedb6
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
lib.h File Reference

Convenience wrapper for the library headers. More...

#include "config.h"
#include "array.h"
#include "atoi.h"
#include "base64.h"
#include "buffer.h"
#include "charset.h"
#include "ctype2.h"
#include "date.h"
#include "envlist.h"
#include "eqi.h"
#include "exit.h"
#include "file.h"
#include "filter.h"
#include "hash.h"
#include "list.h"
#include "logging2.h"
#include "mapping.h"
#include "mbyte.h"
#include "md5.h"
#include "memory.h"
#include "message.h"
#include "notify.h"
#include "notify_type.h"
#include "observer.h"
#include "path.h"
#include "pool.h"
#include "prex.h"
#include "qsort_r.h"
#include "queue.h"
#include "random.h"
#include "regex3.h"
#include "signal2.h"
#include "slist.h"
#include "state.h"
#include "string2.h"
#include <time.h>
#include <stddef.h>
+ Include dependency graph for lib.h:

Go to the source code of this file.

Macros

#define FALLTHROUGH
 

Functions

time_t timegm (struct tm *tm)
 Convert struct tm to time_t seconds since epoch.
 
int wcscasecmp (const wchar_t *a, const wchar_t *b)
 Compare two wide-character strings, ignoring case.
 

Detailed Description

Convenience wrapper for the library headers.

Authors
  • Richard Russon
  • Thomas Klausner

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Definition in file lib.h.

Macro Definition Documentation

◆ FALLTHROUGH

#define FALLTHROUGH

Definition at line 117 of file lib.h.

Function Documentation

◆ timegm()

time_t timegm ( struct tm * tm)

Convert struct tm to time_t seconds since epoch.

Parameters
tmTime to convert to seconds since epoch
Return values
numSeconds since epoch

Definition at line 70 of file timegm.c.

71{
72 return tm_to_sec(tm);
73}
static time_t tm_to_sec(struct tm *tm)
Convert a time structure to number of seconds since the epoch.
Definition timegm.c:49
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ wcscasecmp()

int wcscasecmp ( const wchar_t * a,
const wchar_t * b )

Compare two wide-character strings, ignoring case.

Parameters
aFirst string
bSecond string
Return values
-1a precedes b
0a and b are identical
1b precedes a

Definition at line 41 of file wcscasecmp.c.

42{
43 if (!a && !b)
44 return 0;
45 if (!a && b)
46 return -1;
47 if (a && !b)
48 return 1;
49
50 for (; *a || *b; a++, b++)
51 {
52 int i = towlower(*a);
53 if ((i - towlower(*b)) != 0)
54 return i;
55 }
56 return 0;
57}
+ Here is the caller graph for this function: