hexvalue.cpp

来自「This is a GPS communication source code 」· C++ 代码 · 共 25 行

CPP
25
字号
#include "nmea0183.h"
#pragma hdrstop

/*
** Author: Samuel R. Blackburn
** Internet: sam_blackburn@pobox.com
**
** You can use it any way you like as long as you don't try to sell it.
**
** Copyright, 1996, Samuel R. Blackburn
**
** $Workfile: hexvalue.cpp $
** $Revision: 3 $
** $Modtime: 10/09/98 7:10p $
*/

DWORD HexValue( const char *hex_string )
{
   DWORD return_value = 0;

   sscanf( hex_string, "%lx", (DWORD *) &return_value );

   return( return_value );
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?