xref: /llvm-project/libc/src/ctype/toascii.cpp (revision 5ff3ff33ff930e4ec49da7910612d8a41eb068cb)
104edcc02SMichael Jones //===-- Implementation of toascii------------------------------------------===//
204edcc02SMichael Jones //
304edcc02SMichael Jones // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
404edcc02SMichael Jones // See https://llvm.org/LICENSE.txt for license information.
504edcc02SMichael Jones // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
604edcc02SMichael Jones //
704edcc02SMichael Jones //===----------------------------------------------------------------------===//
804edcc02SMichael Jones 
904edcc02SMichael Jones #include "src/ctype/toascii.h"
1004edcc02SMichael Jones 
1104edcc02SMichael Jones #include "src/__support/common.h"
12*5ff3ff33SPetr Hosek #include "src/__support/macros/config.h"
1304edcc02SMichael Jones 
14*5ff3ff33SPetr Hosek namespace LIBC_NAMESPACE_DECL {
1504edcc02SMichael Jones 
1604edcc02SMichael Jones LLVM_LIBC_FUNCTION(int, toascii, (int c)) { return (c & 0x7f); }
1704edcc02SMichael Jones 
18*5ff3ff33SPetr Hosek } // namespace LIBC_NAMESPACE_DECL
19