This commit also converts our own copyright headers to directly use SPDX, but leaves all other copyright header intact, only adding the SPDX ident. As far as possible this commit also merges multiple Data61 copyright statements/headers into one for consistency.
16 lines
329 B
C
16 lines
329 B
C
/*
|
|
* Copyright 2014, General Dynamics C4 Systems
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-only
|
|
*/
|
|
|
|
#ifndef __STRING_H
|
|
#define __STRING_H
|
|
|
|
#include <stdint.h>
|
|
|
|
word_t strnlen(const char *s, word_t maxlen);
|
|
word_t strlcpy(char *dest, const char *src, word_t size);
|
|
word_t strlcat(char *dest, const char *src, word_t size);
|
|
|
|
#endif
|