talkerid.cpp

来自「GPS的协议为NMEA0183」· C++ 代码 · 共 28 行

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

/*
** Author: Samuel R. Blackburn
** CI$: 76300,326
** Internet: sammy@sed.csc.com
**
** You can use it any way you like.
*/

const CString& talker_id( const CString &sentence )
{
   static CString return_string;

   return_string.Empty();

   if ( sentence.GetLength() >= 3 )
   {
      if ( sentence[ 0 ] == '$' )
      {
         return_string = sentence.Mid( 1, 2 );
      }
   }

   return( return_string );
}

⌨️ 快捷键说明

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