C语言中的缩写

本文详细解释了C语言中基本数据类型名以及如stdio.h、string.h、stdlib.h、ctype.h、math.h等头文件中常用函数的英文全称,旨在帮助学习者更好地理解和记忆其用法。涵盖了整数、字符、浮点数等类型以及文件操作、字符串处理、数学运算等相关函数。
摘要由CSDN通过智能技术生成

前言

        在C语言的学习中,我们经常会遇到一些C语言的类型名或者函数名,比如int,char等等。这些名称往往是某些具体英文单词的缩写,对于英语母语者而言,察觉到它们的全称是很容易的。比如int就是integer(整数)的缩写,char是character(字符)的缩写。在C语言的学习过程中,如果能注意到这些缩写所代表的意思,对于理解和记忆它们的用法会有很大的帮助。我注意到中文互联网上整合这类的文章大多过于零碎,没有系统的去整合。因此,本文将按头文件分类的形式解释C语言中常用的类型或函数名的全称。因能力有限造成的错误还请各位大佬纠正,如有需要补充的请在评论区提出。

目录

1.基本数据类型名

2.<stdio.h>中常用函数

3.<string.h>中的常用函数

4.<stdlib.h>中的常用函数

5.<ctype.h>中的常用函数

6.<math.h>中常用函数


1.基本数据类型名

名称

英文全称

中文翻译

int

integer

整数

shor

short integer

短整数

long

long integer

长整数

char

character

字符

float

floating-point number

浮点数

double

double-precision floating-point number

双精度浮点数

unsigned **

unsigned

无符号的**

2.<stdio.h>中常用函数

名称

英文全称

中文翻译

printf

print formatted

格式化输出

scanf

scan formatted

格式化输入

fopen

file open

打开文件

fclose

file close

关闭文件

fgets

get string from file

从文件读取字符串

fputs

put string to file

将字符串写入文件

fread

file read

读取文件

fwrite

file write

写入文件

fseek

file seek

文件查找

ftell

file tell

文件位置查询

fprintf

formatted print to file

向文件中打印格式化输出

fscanf

formatted scan from file

从文件中扫描格式化输入

fflush

flush stream

刷新流

getchar

get character

获取字符

putchar

put character

输出字符

gets

get string

获取字符串

puts

put string

输出字符串

3.<string.h>中的常用函数

名称

英文全称

中文翻译

strcpy

string copy

字符串复制

strcat

string concatenate

字符串连接

strlen

string length

字符串长度

strcmp

string compare

字符串比较

strchr

string character

查找指定字符

strstr

string search

查找指定子串

memcpy

memory copy

内存复制

memmove

memory move

内存移动

memset

memory set

内存设置

memcmp

memory compare

内存比较

4.<stdlib.h>中的常用函数

名称

英文全称

中文翻译

atoi

ASCII to integer

ASCII码字符串转为整数

atof

ASCII to float

ASCII码字符串转为浮点数

strtol

string to long

字符串转为长整型数

strtod

string to double

字符串转为双精度浮点数

rand

generate random

生成随机数

srand

seed random

设置随机数的种子

malloc

memory allocation

分配内存空间

free

free

释放内存空间

abs

absolute value

计算整数绝对值

labs

long absolute value

计算长整数绝对值

exit

exit

退出程序

qsort

quick sort

快速排序

system

system

系统命令

5.<ctype.h>中的常用函数

名称

英文全称

中文翻译

isalnum

is alphanumeric

是否是字母或者数字

isalpha

is alphabetic

是否是字母

isascii

is ASCII

是否是ASCII字符

isblank

is blank

是否是空白字符(不含换行符)

iscntrl

is control character

是否是控制字符

isdigit

is digit

是否是数字

isgraph

is graphical

是否是可显示字符

islower

is lower

是否是小写字母

isprint

is printable

是否是可打印字符

ispunct

is punctuation

是否是标点符号

isspace

is space

是否是空白字符(包括换行符等)

isupper

is upper

是否是大写字母

isxdigit

is hexadecimal digit

是否是十六进制数字字符

tolower

to lower

字符转化为小写字母

toupper

to upper

字符转化为大写字母

6.<math.h>中常用函数

名称

英文全称

中文翻译

sin

sine function

正弦函数

cos

cosine function

余弦函数

tan

tangent function

正切函数

asin

arcsine function

反正弦函数

acos

arccosine function

反余弦函数

atan

arctangent function

反正切函数

exp

exponential function

指数函数

log

natural logarithm

自然对数

log10

common logarithm

常用对数

sqrt

square root function

平方根函数

pow

power function

幂函数

  • 2
    点赞
  • 26
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值