Unit 'System' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#rtl]

CompareChar0

Compare two buffers character by character till a null-character is reached.

Declaration

Source position: systemh.inc line 929

function CompareChar0(

  const buf1;

  const buf2;

  len: SizeInt

):SizeInt;

Description

CompareChar0 compares 2 buffers buf1 and buf2 for a maximum length of len or till a null character is reached in either buffer. The result depends on the contents of the buffers:

< 0
If buf1 contains a character less than the corresponding character in buf2.
0
If both buffers are equal
> 0
If buf1 contains a character greater than the corresponding character in buf2.

Errors

None.

See also

CompareByte

  

Compare 2 memory buffers byte per byte.

CompareChar

  

compare 2 memory buffers character per character.

CompareDWord

  

Compare 2 memory buffers DWord per DWord.

CompareWord

  

Compare 2 memory buffers word per word.


Documentation generated on: Oct 27 2024