#include <time.h>
#include <ctype.h>
#include <errno.h>
#include <stdio.h>
#include <fcntl.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <dirent.h>
#include <unistd.h>
#include <sys/time.h>
Go to the source code of this file.
Data Structures | |
struct | _DString |
Defines | |
#define | TRUE (1 == 1) |
#define | FALSE (1 == 0) |
#define | FERR (-2) |
#define | addtext(p, s) { int plen=strlen (p), slen=strlen (s); memmove (p+plen, s, slen); p[plen+slen]='\0'; } |
#define | insmem(p1, pos, p2, len) if (len) memmove (p1+pos, p2, len); pos+=len |
#define | getmem(p1, pos, p2, len) if (len) memmove (p2, p1+pos, len); pos+=len |
#define | iffree(p) if (p) free (p) |
#define | iffunc(p, f) if (p) f (p) |
#define | iffclose(fd) if (fd) fclose (fd) |
#define | tcalloc(t) (t *)calloc (1, sizeof(t)) |
#define | tncalloc(t, n) (t *)calloc (n, sizeof(t)) |
#define | scalloc(len) (char *)calloc (len, sizeof(char)) |
#define | ssdup(p, v) p->v=strdup (v) |
#define | padstring(s, p, len) { int _i; for (_i=strlen (s); _i < len; _i+=strlen (p)) addtext (s, p); } |
#define | tfstr(b) (b ? "True" : "False") |
Typedefs | |
typedef enum _Comparison | Comparison |
typedef _DString | DString |
typedef void(* | FuncVoid )(void) |
typedef void(* | FuncBool )(int) |
typedef void(* | FuncChar )(char) |
typedef void(* | FuncInt )(int) |
typedef void(* | FuncLong )(long) |
typedef void(* | FuncFloat )(float) |
typedef void(* | FuncDouble )(double) |
typedef void(* | FuncString )(char *) |
typedef void(* | FuncDString )(DString *) |
typedef int(* | FuncWVoid )(void) |
typedef int(* | FuncWBool )(void) |
typedef char(* | FuncWChar )(void) |
typedef int(* | FuncWInt )(void) |
typedef long(* | FuncWLong )(void) |
typedef float(* | FuncWFloat )(void) |
typedef double(* | FuncWDouble )(void) |
typedef char *(* | FuncWString )(void) |
typedef DString *(* | FuncWDString )(void) |
Enumerations | |
enum | _Comparison { CLessThan = -1, CEqualTo = 0, CGreaterThan = 1 } |
Functions | |
char | getch (int fd) |
char | ungetch (int fd) |
char * | getline (int fd) |
int | putch (int fd, char c) |
int | putchunk (int fd, char *str) |
int | putline (int fd, char *str) |
void | cuf_error (char *module, int fatal, char *fmt,...) |
void | cuf_warning (char *module, char *fmt,...) |
void | cuf_message (char *module, int level, char *fmt,...) |
void | cuf_debug_level_set (int level) |
DString * | dstring_new (unsigned long len) |
void | dstring_free (DString *dstr) |
char * | get_cwd (void) |
int | mkdirp (const char *pathname, mode_t mode) |
|
|
|
Universal False. |
|
File error. Used by the global file reading/writing functions. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Universal True. |
|
Comparison enumeration. |
|
Data String. |
|
type name for when calling a function with a boolean argument |
|
type name for when calling a function with a char argument |
|
type name for when calling a function with a double argument |
|
type name for when calling a function with a DString argument |
|
type name for when calling a function with a float argument |
|
type name for when calling a function with a int argument |
|
type name for when calling a function with a long argument |
|
type name for when calling a function with a string argument |
|
type name for when calling a void function |
|
type name for a writing a boolean |
|
type name for a writing a character |
|
type name for a writing a double |
|
type name for a writing a DString |
|
type name for a writing a float |
|
type name for a writing a int |
|
type name for a writing a long |
|
type name for a writing a string |
|
type name for a writing a void (returns TRUE if function is to be called) |
|
Comparison enumeration. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
' from the file specified by the file descriptor 'fd'. The stream is positioned after the ' '. |
|
|
|
|
|
|
|
). Placing it into a file specified by the file descriptor 'fd' and advances the stream. |
|
|