comparison src/gpf/inc/tools.h @ 0:4e78acac3d88

src/{condat,cs,gpf,nucleus}: import from Selenite
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 16 Oct 2020 06:23:26 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:4e78acac3d88
1 /*
2 +------------------------------------------------------------------------------
3 | File: tools.h
4 +------------------------------------------------------------------------------
5 | Copyright 2002 Texas Instruments Berlin, AG
6 | All rights reserved.
7 |
8 | This file is confidential and a trade secret of Texas
9 | Instruments Berlin, AG
10 | The receipt of or possession of this file does not convey
11 | any rights to reproduce or disclose its contents or to
12 | manufacture, use, or sell anything it may describe, in
13 | whole, or in part, without the specific written consent of
14 | Texas Instruments Berlin, AG.
15 +-----------------------------------------------------------------------------
16 | Purpose : Definitions and prototypes.
17 +-----------------------------------------------------------------------------
18 */
19
20 #ifndef __TOOLS_H__
21 #define __TOOLS_H__
22
23 /*==== INCLUDES =============================================================*/
24
25 /*==== CONSTS ===============================================================*/
26
27 #define CHARS_FOR_8BIT 2
28 #define CHARS_FOR_16BIT 4
29 #define CHARS_FOR_32BIT 8
30
31 /*==== TYPES ================================================================*/
32
33
34 /*==== PROTOTYPES ===========================================================*/
35
36 unsigned int GetNextToken (char *source, char *token, char const *seperators);
37 char *HexToASCII (ULONG value, char *ptr, int num);
38 unsigned int ASCIIToHex (char *p, int num);
39 char* InsertString (char *string, char *p, int num);
40 char *rm_path ( const char *file );
41
42 #endif
43