diff options
Diffstat (limited to '')
-rw-r--r-- | c/src/lib/libbsp/i960/rxgen960/startup/frmstr.h | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/i960/rxgen960/startup/frmstr.h b/c/src/lib/libbsp/i960/rxgen960/startup/frmstr.h new file mode 100644 index 0000000000..5460aaf91e --- /dev/null +++ b/c/src/lib/libbsp/i960/rxgen960/startup/frmstr.h @@ -0,0 +1,43 @@ + + /* frmstr.h + * Interface to procedures used to implement + * the printf group. + */ + +#ifndef _FRMSTR_H_ +#define _FRMSTR_H_ + +#ifdef __i960 + +typedef int ArgType; +typedef unsigned int ArgType_U; + +#else + +typedef long ArgType; +typedef unsigned long ArgType_U; + +#endif + + /* Format a string. + */ +extern int format_string(const char * frmt, ArgType * args, char * buffer); + /* Get arguments from formatted string. + */ +extern int unformat_string(const char * fmt, int ** argp, const char * buffer); + + /* Definitions for control characters. + */ +#define BELL ('G' & 0x1f) +#define BACKSPACE '\b' +#define DELETE 0x7f +#define KILL ('U' - 'A' + 1) +#define XON ('Q' & 0x1f) +#define XOFF ('S' & 0x1f) +#define CNTRL_C 0x3 + +#endif + + /* End of File + */ + |