mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-08-03 17:59:07 -04:00
11 lines
513 B
Plaintext
11 lines
513 B
Plaintext
This module provides one function, equals (not exported by default).
|
|
|
|
You should pass this function two strings of the same length. It will
|
|
return true if they are string-wise identical and false otherwise, just
|
|
like eq. However, comparing any two differing strings will take a fixed
|
|
amount of time, unlike eq.
|
|
|
|
NOTE: If the lengths of the strings are different, equals will return
|
|
false right away. Also, comparing two identical strings will take a
|
|
different amount of time than comparing two differing strings.
|