我需要使用toupper
和tolower
,但我不知道哪个库包含这些函数。
请帮帮我!
在几乎所有环境(包括任何POSIX环境)中,这两个函数都由标准C库提供,即不需要与特定库链接。相关功能的手册页面将向您展示#include
;在POSIX上,根据手册页面,答案是ctype.h
:
TOUPPER(3) BSD Library Functions Manual TOUPPER(3)
NAME
toupper, toupper_l -- lower case to upper case letter conversion
LIBRARY
Standard C Library (libc, -lc)
SYNOPSIS
#include <ctype.h>
int
toupper(int c);