Last change
on this file since 127 was 59, checked in by DHERBOMEZ Gérald, 10 years ago |
Integration of new modules:
- GPS NMEA0183 decoder
- Span CPT Decoder
Update of:
|
File size:
587 bytes
|
Line | |
---|
1 | #include "nmea0183.h"
|
---|
2 | #pragma hdrstop
|
---|
3 |
|
---|
4 | /*
|
---|
5 | ** Author: Samuel R. Blackburn
|
---|
6 | ** Internet: sam_blackburn@pobox.com
|
---|
7 | **
|
---|
8 | ** You can use it any way you like as long as you don't try to sell it.
|
---|
9 | **
|
---|
10 | ** Copyright, 1996, Samuel R. Blackburn
|
---|
11 | **
|
---|
12 | ** $Workfile: hexvalue.cpp $
|
---|
13 | ** $Revision: 3 $
|
---|
14 | ** $Modtime: 10/09/98 7:10p $
|
---|
15 | */
|
---|
16 |
|
---|
17 | #ifdef _MSC_VER
|
---|
18 | # pragma warning(disable:4996)
|
---|
19 | #endif // _MSC_VER
|
---|
20 |
|
---|
21 | unsigned int HexValue( const char *hex_string )
|
---|
22 | {
|
---|
23 | unsigned int return_value = 0;
|
---|
24 |
|
---|
25 | sscanf( hex_string, "%x", (unsigned int *) &return_value );
|
---|
26 |
|
---|
27 | return( return_value );
|
---|
28 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.