xref: /llvm-project/libc/src/string/strdup.h (revision 2ce10f0491142863d3f21cd0adb312ab2cfed107)
165bb6593SMichael Jones //===-- Implementation header for strdup ------------------------*- C++ -*-===//
265bb6593SMichael Jones //
365bb6593SMichael Jones // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
465bb6593SMichael Jones // See https://llvm.org/LICENSE.txt for license information.
565bb6593SMichael Jones // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
665bb6593SMichael Jones //
765bb6593SMichael Jones //===----------------------------------------------------------------------===//
865bb6593SMichael Jones 
965bb6593SMichael Jones #ifndef LLVM_LIBC_SRC_STRING_STRDUP_H
1065bb6593SMichael Jones #define LLVM_LIBC_SRC_STRING_STRDUP_H
1165bb6593SMichael Jones 
12*2ce10f04SJob Henandez Lara #include "include/llvm-libc-types/size_t.h"
135ff3ff33SPetr Hosek #include "src/__support/macros/config.h"
1465bb6593SMichael Jones 
155ff3ff33SPetr Hosek namespace LIBC_NAMESPACE_DECL {
1665bb6593SMichael Jones 
1765bb6593SMichael Jones char *strdup(const char *src);
1865bb6593SMichael Jones 
195ff3ff33SPetr Hosek } // namespace LIBC_NAMESPACE_DECL
2065bb6593SMichael Jones 
2165bb6593SMichael Jones #endif // LLVM_LIBC_SRC_STRING_STRDUP_H
22