aboutsummaryrefslogtreecommitdiffstats
path: root/sdk/other/strcvt.h
blob: 443c820994e54c8f3c22dde1a9ee6f3c76ffb484 (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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/*
 * Portable string handling routines.
 * $Id$
 * Copyright (c) 1997 by Tycho Softworks.
 * For conditions of distribution and reuse see product license.
 */

#ifndef	__OTHER_STRCVT_H__
#define	__OTHER_STRCVT_H__

#ifndef	__STD_STRING_H__
#include <std/string.h>
#endif

#ifdef	__cplusplus
extern "C" {
#endif

#ifdef	__NAMESPACE
#define	__SPACES	__NAMESPACE(__SPACES)
#endif

extern	char	__SPACES[];

#ifdef	__NAMESPACE
#define	atob		__NAMESPACE(atob)
#define	strint		__NAMESPACE(strint)
#define	picture		__NAMESPACE(picture)
#define	expand		__NAMESPACE(expand)
#define	xdigit		__NAMESPACE(xdigit)
#define	xtol		__NAMESPACE(xtol)
#define	hex		__NAMESPACE(hex)
#define	hexbyte		__NAMESPACE(hexbyte)
#define	hexshort	__NAMESPACE(hexshort)
#define	hexlong		__NAMESPACE(hexlong)
#define	str2bcd		__NAMESPACE(str2bcd)
#define	bcd2str		__NAMESPACE(bcd2str)
#endif

bool 	atob(const char *str);
char 	*strint(long i, int z);
char 	*picture(char *buf, const char *pict, long value);
char 	*expand(const char *str);
int	xdigit(char digit);
ulong	xtol(const char *digit);
char	hex(int value);
char 	*hexbyte(uchar);
char	*hexshort(ushort);
char	*hexlong(ulong);
char	*str2bcd(uchar *bcd, char *str, int max);
uchar	*bcd2str(char *str, uchar *bcd, int len);
#ifdef	__cplusplus
}
#endif

#endif