Blame doc/functions/gnutls_memcmp
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
@deftypefun {int} {gnutls_memcmp} (const void * @var{s1}, const void * @var{s2}, size_t @var{n})
|
|
Packit Service |
4684c1 |
@var{s1}: the first address to compare
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
@var{s2}: the second address to compare
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
@var{n}: the size of memory to compare
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
This function will operate similarly to @code{memcmp()} , but will operate
|
|
Packit Service |
4684c1 |
on time that depends only on the size of the string. That is will
|
|
Packit Service |
4684c1 |
not return early if the strings don't match on the first byte.
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
@strong{Returns:} non zero on difference and zero if the buffers are identical.
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
@strong{Since:} 3.4.0
|
|
Packit Service |
4684c1 |
@end deftypefun
|