CompareChar0 function
Compare two buffers character by character till a null-character is reached.
Declaration
function CompareChar0(const buf1; const buf2; len: SizeInt): SizeIntDescription
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
buf1contains a character less than the corresponding character inbuf2. - 0
- If both buffers are equal
- > 0
- If
buf1contains a character greater than the corresponding character inbuf2.
Errors
None.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
