C语言中的哪个库可以用于toupper和tolower

  • 本文关键字:用于 toupper tolower 语言 c
  • 更新时间 :
  • 英文 :


我需要使用touppertolower,但我不知道哪个库包含这些函数。

请帮帮我!

在几乎所有环境(包括任何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);

最新更新