Linux系统编程15_C函数总结

时间:2021-04-13 10:40:11   收藏:0   阅读:30

signal.h
signal
sigaction
kill
sigqueue

 

stdio.h
scanf
printf
sprintf //把格式化数据写入到string中,不安全
snprintf //把格式化数据写入到string中,安全


stdlib.h
malloc
calloc
free
atoi
atol
srand
rand
system

 

string.h
memcpy
memset
strcat
strncat
strcmp
strcpy
strncpy
strlen
strtok

 

unistd.h
fork
sleep
read
write
lseek
close

 

fcntl.h
open //还需要sys/stat.h sys/types.h

pthread.h

 

mqueue.h

 

semaphore.h

 

原文:https://www.cnblogs.com/grooovvve/p/14651250.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!