MCPcopy Create free account
hub / github.com/EIPStackGroup/OpENer / GetPathSymbolicSegmentFormat

Function GetPathSymbolicSegmentFormat

source/src/cip/cipepath.c:534–542  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

532/*** Symbolic Segment ***/
533
534SymbolicSegmentFormat GetPathSymbolicSegmentFormat(
535 const unsigned char *const cip_path) {
536 const unsigned int kSymbolicSegmentFormatMask = 0x1F;
537 if( SYMBOLIC_SEGMENT_FORMAT_EXTENDED_STRING ==
538 (*cip_path & kSymbolicSegmentFormatMask) ) {
539 return kSymbolicSegmentFormatExtendedString;
540 }
541 return kSymbolicSegmentFormatASCII;
542}
543
544unsigned int GetPathSymbolicSegmentASCIIFormatLength(
545 const unsigned char *const cip_path) {

Callers 2

TESTFunction · 0.85

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.68