#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <stdint.h>
#include "gtest/gtest.h"
#include <malloc.h>
Go to the source code of this file.
|
| | cryptonote |
| | Holds cryptonote related classes and helpers.
|
| |
◆ TEST()
| TEST |
( |
slowmem |
, |
|
|
Success |
|
|
) |
| |
Definition at line 109 of file slow_memmem.cpp.
112 for (n=0;n<
sizeof(
T)/
sizeof(
T[0]);++n) {
126 if (
res!=
T[n].
res) printf(
"failed (got %zu, expected %zu)",
res,
T[n].
res);
else printf(
"ok");
#define ASSERT_EQ(val1, val2)
size_t slow_memmem(const void *start_buff, size_t buflen, const void *pat, size_t patlen)
void * memcpy(void *a, const void *b, size_t c)
◆ buf
◆ buflen
◆ pat
◆ patlen
◆ res