ze-filter  (ze-filter-0.8.0-develop-180218)
ze-divers.c File Reference
#include <ze-sys.h>
#include "zelibs.h"

Go to the source code of this file.

Macros

#define REGCOMP_FLAGS   (REG_ICASE | REG_EXTENDED)
 

Functions

int count_uint32bits (uint32_t val)
 
char * jstrdup (char *s)
 
void * jmalloc (size_t sz)
 
char * strtolower (char *s)
 
char * strtoupper (char *s)
 
char * strset (char *dst, int c, int len)
 
void strchknull (char *s, int len)
 
size_t strclean (char *s, size_t sz)
 
char * strnoblanks (char *s, size_t size)
 
char * str_clear_trailing_blanks (char *s)
 
bool strexpr (char *s, char *expr, long *pi, long *pf, bool icase)
 
void center_string (char *dst, char *org, int len)
 
int nb_valid_pointer (char *a, char *b, char *c)
 
int str2tokens (char *s, int sz, char **argv, char *sep)
 
char * j_basename (char *out, char *in, size_t size)
 
bool file_lock (int fd)
 
bool file_unlock (int fd)
 
size_t get_file_size (char *fname)
 
size_t get_fd_size (int fd)
 
int readln (int fd, char *buf, size_t size)
 
bool remove_dir (char *dirname)
 
bool getdirinfo (char *dir)
 
char * path2filename (char *path)
 

Macro Definition Documentation

◆ REGCOMP_FLAGS

#define REGCOMP_FLAGS   (REG_ICASE | REG_EXTENDED)

Definition at line 309 of file ze-divers.c.

Function Documentation

◆ center_string()

void center_string ( char *  dst,
char *  org,
int  len 
)

Definition at line 354 of file ze-divers.c.

◆ count_uint32bits()

int count_uint32bits ( uint32_t  val)

Definition at line 33 of file ze-divers.c.

◆ file_lock()

bool file_lock ( int  fd)

Definition at line 474 of file ze-divers.c.

◆ file_unlock()

bool file_unlock ( int  fd)

Definition at line 488 of file ze-divers.c.

◆ get_fd_size()

size_t get_fd_size ( int  fd)

Definition at line 529 of file ze-divers.c.

◆ get_file_size()

size_t get_file_size ( char *  fname)

Definition at line 506 of file ze-divers.c.

◆ getdirinfo()

bool getdirinfo ( char *  dir)

Definition at line 634 of file ze-divers.c.

◆ j_basename()

char* j_basename ( char *  out,
char *  in,
size_t  size 
)

Definition at line 425 of file ze-divers.c.

◆ jmalloc()

void* jmalloc ( size_t  sz)

Definition at line 137 of file ze-divers.c.

◆ jstrdup()

char* jstrdup ( char *  s)

Definition at line 113 of file ze-divers.c.

◆ nb_valid_pointer()

int nb_valid_pointer ( char *  a,
char *  b,
char *  c 
)

Definition at line 374 of file ze-divers.c.

◆ path2filename()

char* path2filename ( char *  path)

Definition at line 678 of file ze-divers.c.

◆ readln()

int readln ( int  fd,
char *  buf,
size_t  size 
)

Definition at line 550 of file ze-divers.c.

◆ remove_dir()

bool remove_dir ( char *  dirname)

Definition at line 590 of file ze-divers.c.

◆ str2tokens()

int str2tokens ( char *  s,
int  sz,
char **  argv,
char *  sep 
)

Definition at line 395 of file ze-divers.c.

◆ str_clear_trailing_blanks()

char* str_clear_trailing_blanks ( char *  s)

Definition at line 282 of file ze-divers.c.

◆ strchknull()

void strchknull ( char *  s,
int  len 
)

Definition at line 205 of file ze-divers.c.

◆ strclean()

size_t strclean ( char *  s,
size_t  sz 
)

Definition at line 226 of file ze-divers.c.

◆ strexpr()

bool strexpr ( char *  s,
char *  expr,
long *  pi,
long *  pf,
bool  icase 
)

Definition at line 312 of file ze-divers.c.

◆ strnoblanks()

char* strnoblanks ( char *  s,
size_t  size 
)

Definition at line 257 of file ze-divers.c.

◆ strset()

char* strset ( char *  dst,
int  c,
int  len 
)

Definition at line 188 of file ze-divers.c.

◆ strtolower()

char* strtolower ( char *  s)

Definition at line 156 of file ze-divers.c.

◆ strtoupper()

char* strtoupper ( char *  s)

Definition at line 172 of file ze-divers.c.