home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
World of A1200
/
World_Of_A1200.iso
/
programs
/
disk
/
misc
/
dcmp
/
source
/
source.lha
/
xtoy.h
< prev
next >
Wrap
C/C++ Source or Header
|
1992-10-02
|
1KB
|
28 lines
/*--------------------------------------------------------------------------*
xtoy.h (c) Copyright 1991,92 Tobias Ferber. All Rights Reserved.
*--------------------------------------------------------------------------*/
#include <exec/types.h>
#include <libraries/dosextens.h>
#include <stdio.h>
extern char *itor(int, char *); /* convert integer to roman */
extern char *strupr(char *); /* covert string to upper case */
extern char *strlower(char *); /* convert string to lower case */
extern long dectol(char *); /* decimal string to long conversion */
extern long hextol(char *); /* hex string to long conversion */
extern char *binstr(long, int); /* binary string of a long with int digits */
#define isupper(c) ((c)>='A'&&(c)<='Z')
#define islower(c) ((c)>='a'&&(c)<='z')
#define isletter(c) (isupper(c)||islower(c))
#define isalpha(c) (isletter(c)||isdigit(c))
#define isdigit(c) ((c)>='0'&&(c)<='9')
#define ishexdigit(c) (('0'<=(c) && (c)<='9') || \
('A'<=(c) && (c)<='F') || \
('a'<=(c) && (c)<='f'))
#define toupper(c) (islower(c)?((c)-'a'+'A'):(c))
#define tolower(c) (isupper(c)?((c)-'A'+'a'):(c))