xref: /llvm-project/libc/src/ctype/isgraph.cpp (revision 856dadb33c38f4e3be592f11c3d67e7337e288c7)
16cd50e7bScgyurgyik //===-- Implementation of isgraph------------------------------------------===//
26cd50e7bScgyurgyik //
36cd50e7bScgyurgyik // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
46cd50e7bScgyurgyik // See https://llvm.org/LICENSE.txt for license information.
56cd50e7bScgyurgyik // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
66cd50e7bScgyurgyik //
76cd50e7bScgyurgyik //===----------------------------------------------------------------------===//
86cd50e7bScgyurgyik 
96cd50e7bScgyurgyik #include "src/ctype/isgraph.h"
106cd50e7bScgyurgyik 
116cd50e7bScgyurgyik #include "src/__support/common.h"
12c120edc7SMichael Jones #include "src/__support/ctype_utils.h"
13*5ff3ff33SPetr Hosek #include "src/__support/macros/config.h"
146cd50e7bScgyurgyik 
15*5ff3ff33SPetr Hosek namespace LIBC_NAMESPACE_DECL {
166cd50e7bScgyurgyik 
179cdd4ea0SAlfonso Gregory LLVM_LIBC_FUNCTION(int, isgraph, (int c)) {
189cdd4ea0SAlfonso Gregory   return static_cast<int>(internal::isgraph(static_cast<unsigned>(c)));
199cdd4ea0SAlfonso Gregory }
206cd50e7bScgyurgyik 
21*5ff3ff33SPetr Hosek } // namespace LIBC_NAMESPACE_DECL
22