![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
standard c libraries translation
文章平均质量分 76
威猛の小脑斧
这个作者很懒,什么都没留下…
展开
-
(standard c libraries translation )fcntl
fcntl - manipulate file descriptorfcntl - 操作文件描述符所需头文件#include #include int fcntl(int fd, int cmd, ... /* arg */ );fcntl() performs one of the operations described below on the ope翻译 2014-02-20 11:34:03 · 1520 阅读 · 0 评论 -
(standard c libraries translation )sbrk家族
brk, sbrk - change data segment sizebrk,sbrk-改变数据段的大小所需头文件:#include int brk(void *addr);void *sbrk(intptr_t increment);brk() and sbrk() change the location of the program break, w翻译 2013-12-26 12:21:41 · 700 阅读 · 0 评论 -
(standard c libraries translation )malloc家族
malloc, free, calloc, realloc - allocate and free dynamic memorymalloc,free,calloc,realloc-动态分配和释放内存所需头文件#include void *malloc(size_t size);void free(void *ptr);void *calloc(size_t nme翻译 2013-12-26 16:54:10 · 812 阅读 · 0 评论 -
(standard c libraries translation )getpass
getpass - get a passwordgetpass - 获取一个密码所需头文件:#include char *getpass( const char *prompt);This function is obsolete. Do not use it.这个函数已经被废弃,请勿使用The getpass() function opens翻译 2014-01-09 11:55:06 · 728 阅读 · 0 评论 -
(standard c libraries translation)alloca
所需头文件#include alloca:allocate memory that is automatically freed申请能够自动释放的内存(实际上是栈区的内存)void *alloca(size_t size);The alloca() function allocates size bytes of space in the stack frame翻译 2013-12-24 20:29:06 · 658 阅读 · 0 评论 -
(standard c libraries translation )atoi家族
所需头文件#include int atoi(const char *nptr);long atol(const char *nptr);long long atoll(const char *nptr);long long atoq(const char *nptr);The atoi() function converts the initial portion翻译 2013-12-24 16:49:47 · 852 阅读 · 0 评论 -
(standard c libraries translation )setfsuid
setfsuid - set user identity used for file system checkssetfsuid - 为文件系统设置用户id所需头文件#include /* glibc uses */int setfsuid(uid_t fsuid);The system call setfsuid() sets the user ID that翻译 2014-01-07 20:01:50 · 714 阅读 · 0 评论 -
(standard c libraries translation)isalpha家族
isalnumchecks for an alphanumeric character; it is equivalent to (isalpha(c) || isdigit(c)).检查是否是含有字母或者数字的字符,等同于isalpha||isdigitisalphachecks for an alphabetic character; in the standard "翻译 2013-12-24 13:16:31 · 711 阅读 · 0 评论 -
(standard c libraries translation )setuid
setgid - set group identitysetgid - 设置组id所需头文件#include #include int setgid(gid_t gid);setgid() sets the effective group ID of the calling process. If the caller is the superuser, th翻译 2014-01-07 20:28:41 · 626 阅读 · 0 评论 -
(standard c libraries translation )seteuid
seteuid, setegid - set effective user or group IDseteuid, setegid - 设置有效的用户和组id所需头文件#include #include int seteuid(uid_t euid);int setegid(gid_t egid);seteuid() sets the effective翻译 2014-01-07 17:32:41 · 648 阅读 · 0 评论 -
(standard c libraries translation )getpagesize
getpagesize - get memory page sizegetpagesize-获取内存页大小所需头文件:#include int getpagesize(void);The function getpagesize() returns the number of bytes in a memory page, where "page" is a fi翻译 2013-12-26 17:18:24 · 956 阅读 · 0 评论 -
( standard c libraries translation )time家族
asctime, ctime, gmtime, localtime, mktime, asctime_r, ctime_r, gmtime_r, localtime_r - transform date and time to broken-down time or ASCIIasctime,ctimegmtime,localtime,mktime,asctime_r,ctime_r,gm翻译 2013-12-27 13:36:27 · 674 阅读 · 0 评论 -
(standard c libraries translation )fileno
clearerr, feof, ferror, fileno - check and reset stream statusclearerr, feof, ferror, fileno - 检查和重置流状态所需头文件#include void clearerr(FILE *stream);int feof(FILE *stream);int ferror(FILE *s翻译 2014-02-20 20:26:56 · 648 阅读 · 0 评论 -
(standard c libraries translation )mkstemp
mkstemp, mkostemp, mkstemps, mkostemps - create a unique temporary filemkstemp, mkostemp, mkstemps, mkostemps - 创建一个唯一的临时文件所需头文件#include int mkstemp(char *template);int mkostemp(char *temp翻译 2014-02-17 17:41:39 · 1196 阅读 · 0 评论 -
(tandard c libraries translation )flock
flock - apply or remove an advisory lock on an open fileflock - 添加或者移除咨询性文件锁所需头文件#include int flock(int fd, int operation);Apply or remove an advisory lock on the open file specified b翻译 2014-02-17 16:14:20 · 661 阅读 · 0 评论 -
(standard c libraries translation )sync
sync, syncfs - commit buffer cache to disksync, syncfs - 提交buffer缓冲到磁盘所需头文件#include void sync(void);void syncfs(int fd);Feature Test Macro Requirements for glibc (see feature_test_翻译 2014-02-15 15:25:22 · 961 阅读 · 0 评论 -
(standard c libraries translation )lseek
lseek - reposition read/write file offsetlseek - 重定位读/写文件偏移量所需头文件#include #include off_t lseek(int fd, off_t offset, int whence);The lseek() function repositions the offset of the翻译 2014-02-15 13:53:37 · 999 阅读 · 0 评论 -
( standard c libraries translation )dup
dup, dup2, dup3 - duplicate a file descriptordup, dup2, dup3 - 复制一个文件描述符所需头文件#include int dup(int oldfd);int dup2(int oldfd, int newfd);#define _GNU_SOURCE /* See feature翻译 2014-02-14 11:55:34 · 644 阅读 · 0 评论 -
(standard c libraries translation )write
write - write to a file descriptorwrite - 写到一个文件描述符所需头文件#include ssize_t write(int fd, const void *buf, size_t count);write() writes up to count bytes from the buffer pointed buf to翻译 2014-02-14 17:10:43 · 573 阅读 · 0 评论 -
(standard c libraries translation )open
open, creat - open and possibly create a file or deviceopen, creat - 打开和可能创建一个文件或者设备所需头文件#include #include #include int open(const char *pathname, int flags);int open(const char *pat翻译 2014-02-13 17:57:41 · 841 阅读 · 1 评论 -
(standard c libraries translation )read
read - read from a file descriptorread - 从一个文件描述符中读所需头文件#include ssize_t read(int fd, void *buf, size_t count);read() attempts to read up to count bytes from file descriptor fd into翻译 2014-02-14 15:03:10 · 641 阅读 · 0 评论 -
( standard c libraries translation )close
close - close a file descriptorclose - 关闭一个文件描述符所需头文件#include int close(int fd);close() closes a file descriptor, so that it no longer refers to any file and may be reused. Any re翻译 2014-02-13 19:41:38 · 525 阅读 · 0 评论 -
( standard c libraries translation )fgetgrent
fgetpwent - get password file entryfgetpwent - 获取密码文件的入口所需头文件#include #include #include struct passwd *fgetpwent(FILE *stream);The fgetpwent() function returns a pointer to a str翻译 2014-01-07 11:00:56 · 933 阅读 · 0 评论 -
( standard c libraries translation )getpwnam
getpwnam, getpwnam_r, getpwuid, getpwuid_r - get password file entrygetpwnam, getpwnam_r, getpwuid, getpwuid_r - 获取password文件的入口所需头文件#include #include struct passwd *getpwnam(const char翻译 2014-01-06 21:07:33 · 1167 阅读 · 0 评论 -
(standard c libraries translation )strdup
strdup, strndup, strdupa, strndupa - duplicate a stringstrdup, strndup, strdupa, strndupa -复制一个字符串所需头文件#include char *strdup(const char *s);char *strndup(const char *s, size_t n);char翻译 2014-01-02 18:02:26 · 813 阅读 · 0 评论 -
(standard c libraries translation )strlen
strlen - calculate the length of a string计算字符串的长度所需头文件#include size_t strlen(const char *s);The strlen() function calculates the length of the string s, excluding the terminating null翻译 2014-01-02 18:17:08 · 571 阅读 · 0 评论 -
(standard c libraries translation )strcpy
strcpy, strncpy - copy a string复制一个字符串所需头文件#include char *strcpy(char *dest, const char *src);char *strncpy(char *dest, const char *src, size_t n);The strcpy() function copies the翻译 2014-01-02 17:13:56 · 712 阅读 · 0 评论 -
(standard c libraries translation )strspn
strspn, strcspn - search a string for a set of bytesstrspn,strcspn-在字符串中查找字节序列所需头文件#include size_t strspn(const char *s, const char *accept);size_t strcspn(const char *s, const char *rej翻译 2014-01-02 15:55:33 · 610 阅读 · 0 评论 -
(standard c libraries translation )strcat
strcat, strncat - concatenate two stringsstrcat,strncat-连接两个字符串所需头文件#include char *strcat(char *dest, const char *src);char *strncat(char *dest, const char *src, size_t n);The strcat(翻译 2013-12-30 20:24:31 · 667 阅读 · 0 评论 -
(standard c libraries translation )strcmp家族
strcmp, strncmp - compare two stringsstrcmp,strncmp-比较两个字符串所需头文件#include int strcmp(const char *s1, const char *s2);int strncmp(const char *s1, const char *s2, size_t n);The strcmp()翻译 2013-12-30 17:55:12 · 644 阅读 · 0 评论 -
( standard c libraries translation )memcpy家族
memcpy - copy memory areamemcpy-复制内存所需头文件#include void *memcpy(void *dest, const void *src, size_t n);The memcpy() function copies n bytes from memory area src to memory area dest. T翻译 2013-12-30 17:15:27 · 656 阅读 · 0 评论 -
(standard c libraries translation )bcmp家族
bcmp - compare byte sequencesbcmp-比较字节序列所需头文件#include int bcmp(const void *s1, const void *s2, size_t n);The bcmp() function compares the two byte sequences s1 and s2 of length n eac翻译 2013-12-30 11:56:50 · 722 阅读 · 0 评论 -
(standard c libraries translation )index
index, rindex - locate character in stringindex,rindex-在字符串中定位字符所需头文件#include char *index(const char *s, int c);char *rindex(const char *s, int c);The index() function returns a pointe翻译 2013-12-30 14:37:57 · 507 阅读 · 0 评论 -
(standard c libraries translation )strtok
strtok, strtok_r - extract tokens from stringsstrtok,strtok_r-从字符串中提取标记所需头文件:#include char *strtok(char *str, const char *delim);char *strtok_r(char *str, const char *delim, char **savep翻译 2014-01-03 14:49:51 · 751 阅读 · 0 评论 -
(standard c libraries translation )strpbrk
strpbrk - search a string for any of a set of bytes所需头文件#include char *strpbrk(const char *s, const char *accept);The strpbrk() function locates the first occurrence in the string s of a翻译 2014-01-02 19:50:03 · 570 阅读 · 0 评论 -
(standard c libraries translation )strstr
strstr, strcasestr - locate a substring定位子串所需头文件#include char *strstr(const char *haystack, const char *needle);#define _GNU_SOURCE /* See feature_test_macros(7) */#include翻译 2014-01-02 20:58:08 · 684 阅读 · 0 评论 -
(standard c libraries translation )getpw
getpw - reconstruct password line entrygetpw - 重建password行入口所需头文件#define _GNU_SOURCE /* See feature_test_macros(7) */#include #include int getpw(uid_t uid, char *buf);T翻译 2014-01-06 20:14:15 · 717 阅读 · 0 评论 -
(standard c libraries translation )getgrgid
getgrnam, getgrnam_r, getgrgid, getgrgid_r - get group file entrygetgrnam, getgrnam_r, getgrgid, getgrgid_r - 获取group文件的入口所需头文件#include #include struct group *getgrnam(const char *name);翻译 2014-01-06 17:50:34 · 950 阅读 · 0 评论 -
(standard c libraries translation )getgroups
getgroups, setgroups - get/set list of supplementary group IDsgetgroups, setgroups - 获取/设置附加组id的列表所需头文件#include #include int getgroups(int size, gid_t list[]);#include int setgroups(翻译 2014-01-06 20:01:11 · 824 阅读 · 0 评论 -
(standard c libraries translation )logwtmp
updwtmp, logwtmp - append an entry to the wtmp fileupdwtmp, logwtmp - 增加入口到wtmp文件尾部所需头文件#include void updwtmp(const char *wtmp_file, const struct utmp *ut);void logwtmp(const char *line,翻译 2014-01-07 16:40:20 · 935 阅读 · 0 评论