-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSCByte.cpp
49 lines (40 loc) · 2.13 KB
/
SCByte.cpp
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
/*-----------------------------------------------------------------------------+
| |
| SCL - Simulation Class Library |
| |
| (c) 1994-98 Marc Diefenbruch, Wolfgang Textor |
| University of Essen, Germany |
| |
+---------------+-------------------+---------------+-------------------+------+
| Module | File | Created | Project | |
+---------------+-------------------+---------------+-------------------+------+
| SCByte | SCByte.cc | 17. Aug 1995 | SCL | |
+---------------+-------------------+---------------+-------------------+------+
| |
| Change Log |
| |
| Nr. Date Description |
| ----- -------- ------------------------------------------------------ |
| 001 |
| 000 --.--.-- Neu angelegt |
| |
+-----------------------------------------------------------------------------*/
/* Lineal
00000000001111111111222222222233333333334444444444555555555566666666667777777777
01234567890123456789012345678901234567890123456789012345678901234567890123456789
*/
#include "SCByte.h"
#include "SCCharstring.h"
#include <stdio.h>
#if _SC_DMALLOC
#include <dmalloc.h>
#endif
#if _SC_NOINLINES
#include "SCByte.inl.h"
#endif
SCByte bhex (const SCCharstring &cs)
{
long longVal;
sscanf (cs.GetString(), "%lx", &longVal);
return ((SCByte)longVal);
}