摘要:
fgets从指定的文件中读一行字符到调用者提供的缓冲区中,gets从标准输入读一行字符到调用者提供的缓冲区中。#include char *fgets(char *s, int size, FILE *stream);char *gets(char *s);返回值:成功时s指向哪返回的指针就指向哪,出错或者读到文件末尾时返回NULL
阅读全文
posted @ 2013-09-13 15:50
语辰
阅读(188)
推荐(0)
编辑
摘要:
http://pubs.opengroup.org/onlinepubs/009695399/functions/pathconf.html
阅读全文
posted @ 2013-09-13 15:47
语辰
阅读(121)
推荐(0)
编辑
摘要:
CMSG_COMPAT_ALIGN函数是什么的使用方法?
阅读全文
posted @ 2013-09-13 15:04
语辰
阅读(140)
推荐(0)
编辑
摘要:
Nameget_user -- Get a simple variable from user space.Synopsisget_user ( x, ptr);ArgumentsxVariable to store result.ptrSource address, in user space.ContextUser context only. This function may sleep.DescriptionThis macro copies a single simple variable from user space to kernel space. It supports si
阅读全文
posted @ 2013-09-13 14:58
语辰
阅读(376)
推荐(0)
编辑
摘要:
1. put_userNameput_user -- Write a simple value into user space.Synopsisput_user ( x, ptr);ArgumentsxValue to copy to user space.ptrDestination address, in user space.ContextUser context only. This function may sleep.DescriptionThis macro copies a single simple value from kernel space to user space.
阅读全文
posted @ 2013-09-13 14:57
语辰
阅读(578)
推荐(0)
编辑
摘要:
size_t是unsigned_int既然是无符号的,一般只能用在没有负数的地方了.比如我们的年龄啊,身高啊.在c标准函数中,最一般的就是strlen,返回字符数.字符数当然不可能是负的啊,所以函数原型是size_t strlen(const char*)摘自:http://zhidao.baidu.com/link?url=p95SGkoMxPk7oW2UTWy31ekizKpzTPNkAxRIg9e1GRF29R8lynSalwBAwKWzFHvBVhtnjZqiNygptLVlkMtDIq
阅读全文
posted @ 2013-09-13 14:37
语辰
阅读(201)
推荐(0)
编辑
摘要:
http://www.lehman.cuny.edu/cgi-bin/man-cgi?kmem_alloc+9
阅读全文
posted @ 2013-09-13 14:32
语辰
阅读(120)
推荐(0)
编辑
摘要:
copyout Kernel ServicePurposeCopies data between user and kernel memory.Syntax#include #include int copyout ( kaddr,uaddr,count)char *kaddr;char *uaddr;int count;ParametersItemDescriptionkaddr Specifies the address of kernel data.uaddr Specifies the address of user data.count Specifies the number...
阅读全文
posted @ 2013-09-13 14:18
语辰
阅读(866)
推荐(0)
编辑