"Fossies" - the Fresh Open Source Software Archive

Member "bind-9.17.5/lib/isc/include/isc/string.h" (4 Sep 2020, 850 Bytes) of package /linux/misc/dns/bind9/9.17.5/bind-9.17.5.tar.xz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "string.h" see the Fossies "Dox" file reference documentation.

    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 http://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 #include "isc/platform.h"
   20 
   21 ISC_LANG_BEGINDECLS
   22 
   23 #if !defined(HAVE_STRLCPY)
   24 size_t
   25 strlcpy(char *dst, const char *src, size_t size);
   26 #endif /* !defined(HAVE_STRLCPY) */
   27 
   28 #if !defined(HAVE_STRLCAT)
   29 size_t
   30 strlcat(char *dst, const char *src, size_t size);
   31 #endif /* if !defined(HAVE_STRLCAT) */
   32 
   33 int
   34 isc_string_strerror_r(int errnum, char *buf, size_t buflen);
   35 
   36 ISC_LANG_ENDDECLS