summaryrefslogtreecommitdiff
path: root/other/burneye/src/stub/helper.h
blob: 20bf88ecbe259ac3d9133e0d399645a1e2210dca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/* helper functions include file
 */

#ifndef	HELPER_H
#define	HELPER_H

#ifdef VDEBUG
#include <stdarg.h>
#endif

#ifndef NULL
#define	NULL ((void *) 0)
#endif

#ifndef VDEBUG
#define be_printf(str,a...)
#else
void be_printf (char *str, ...);
int vsnprintf(char *str, int count, const char *fmt, va_list args);
#endif

int memcmp (void *dst, void *src, unsigned int len);
void memcpy (void *dst, void *src, unsigned int len);
void memset (void *dst, unsigned char c, unsigned int len);
int strlen (unsigned char *str);

void getpass (unsigned char *buf, unsigned int buf_len);
void write_tty (unsigned char *buf, unsigned int buf_len);

#endif