mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-07 16:11:43 +00:00
Add memcmp() to builtin/string.h so that portable third_party code may build without glibc. BRANCH=none BUG=chrome-os-partner:43025,chrome-os-partner:47524 TEST=none Signed-off-by: nagendra modadugu <ngm@google.com> Change-Id: Id52c9c76fceac94bf1998958b43f42ad5d5298d3 Reviewed-on: https://chromium-review.googlesource.com/339878 Commit-Ready: Nagendra Modadugu <ngm@google.com> Tested-by: Nagendra Modadugu <ngm@google.com> Reviewed-by: Vadim Bendebury <vbendeb@chromium.org> Reviewed-by: Bill Richardson <wfrichar@google.com>
18 lines
504 B
C
18 lines
504 B
C
/* Copyright 2016 The Chromium OS Authors. All rights reserved.
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
* found in the LICENSE file.
|
|
*/
|
|
|
|
/* This header is only needed for CR50 compatibility */
|
|
|
|
#ifndef __CROS_EC_STRINGS_H__
|
|
#define __CROS_EC_STRINGS_H__
|
|
|
|
#include <stddef.h>
|
|
|
|
int memcmp(const void *s1, const void *s2, size_t len);
|
|
void *memcpy(void *dest, const void *src, size_t len);
|
|
void *memset(void *dest, int c, size_t len);
|
|
|
|
#endif /* __CROS_EC_STRINGS_H__ */
|