1 /* 2 * Copyright (c) 2021, Arm Limited. All rights reserved. 3 * 4 * SPDX-License-Identifier: BSD-3-Clause 5 * 6 */ 7 #ifndef __TFM_STRNLEN_H__ 8 #define __TFM_STRNLEN_H__ 9 10 /** 11 * \brief Return the length of a given string, up to a maximum of maxlen bytes. 12 * 13 * \param[in] s Points to the string to be examined. 14 * \param[in] maxlen The maximum number of characters to examine. 15 */ 16 size_t tfm_strnlen(const char *s, size_t maxlen); 17 18 #endif /* __TFM_STRNLEN_H__ */ 19