1 /* 2 * Copyright (C) Internet Systems Consortium, Inc. ("ISC") 3 * 4 * This Source Code Form is subject to the terms of the Mozilla Public 5 * License, v. 2.0. If a copy of the MPL was not distributed with this 6 * file, you can obtain one at https://mozilla.org/MPL/2.0/. 7 * 8 * See the COPYRIGHT file distributed with this work for additional 9 * information regarding copyright ownership. 10 */ 11 12 #pragma once 13 14 /*! \file isc/string.h */ 15 16 #include <string.h> 17 18 #include <isc/lang.h> 19 20 ISC_LANG_BEGINDECLS 21 22 #if !defined(HAVE_STRLCPY) 23 size_t 24 strlcpy(char *dst, const char *src, size_t size); 25 #endif /* !defined(HAVE_STRLCPY) */ 26 27 #if !defined(HAVE_STRLCAT) 28 size_t 29 strlcat(char *dst, const char *src, size_t size); 30 #endif /* if !defined(HAVE_STRLCAT) */ 31 32 int 33 isc_string_strerror_r(int errnum, char *buf, size_t buflen); 34 35 ISC_LANG_ENDDECLS 36