码迷,mamicode.com
首页 >  
搜索关键字:restrict    ( 490个结果
fgets和fputs函数
1 函数输入下面两个函数提供每次输入一行的功能。#include char *fgets( char *restrict buf, int n, FILE *restrict fp );char *gets( char *buf ); 两个函数返回值:若成功则返回buf,若已到达文...
分类:其他好文   时间:2014-10-20 22:56:12    阅读次数:226
数据库外键
建立外键的前提: 本表的列必须与外键类型相同(外键必须是外表主键)。指定主键关键字: foreign key(列名)引用外键关键字: references (外键列名)事件触发限制: on delete和on update , 可设参数cascade(跟随外键改动), restrict(限制外表中的...
分类:数据库   时间:2014-10-18 16:42:43    阅读次数:242
snprintf()返回值的陷阱
int snprintf(char *restrict buf, size_t n, const char * restrictformat, ...);函数说明:最多从源串中拷贝n-1个字符到目标串中,然后再在后面加一个0。所以如果目标串的大小为n的话,将不会溢出。函数返回值:若成功则返回欲写入的...
分类:其他好文   时间:2014-10-18 12:32:40    阅读次数:487
Using Java SecurityManager to grant/deny access to system functions
In Java it is possible to restrict access to specific functions like reading/writing files and system properties, thread control, networking, object s...
分类:数据库   时间:2014-10-18 01:54:36    阅读次数:451
C语言清空输入缓冲区的N种方法对比(转)
C语言中有几个基本输入函数://获取字符系列int fgetc(FILE *stream);int getc(FILE *stream);int getchar(void);//获取行系列char *fgets(char * restrict s, int n, FILE * restrict st...
分类:编程语言   时间:2014-10-16 17:52:42    阅读次数:364
文件和目录:stat fstat lstat函数
文件和目录:stat fstat lstat函数#include int stat( const char *restrict pathname, struct stat *restrict buf );int fstat( int filedes, struct stat *buf );int l...
分类:其他好文   时间:2014-10-14 02:11:27    阅读次数:281
linux环境下的线程的创建问题
pthread_create函数用于创建一个线程 函数原型 #include int pthread_create(pthread_t *restrict tidp,                 const pthread_attr_t *restrict attr,                 void *(*start_rtn)(void *),...
分类:编程语言   时间:2014-10-12 01:04:57    阅读次数:317
《UNIX环境高级编程》读书笔记之信号(2)
1.函数sigaction sigaction函数的功能是检查或修改与指定信号相关联的处理动作。其函数原型如下: #inlcude int sigaction(int signo,const struct sigaction * restrict act,struct sigaction * restrict act); 其中参数signo是要检测或修改其具体动作的信号编号。若act指针...
分类:其他好文   时间:2014-10-11 20:10:26    阅读次数:350
C99中的restrict和C89的volatile关键字
1、restrict 它只可以用于限定指针,并表明指针是访问一个数据对象的唯一且初始的方式...
分类:其他好文   时间:2014-09-30 19:28:08    阅读次数:167
C/C++ restrict修饰符
restrict是c99标准引入的,它只可以用于限定和约束指针,并表明指针是访问一个数据对象的唯一且初始的方式.即它告诉编译器,所有修改该指针所指向内存中内容的操作都必须通过该指针来修改,而不能通过其它途径(其它变量或指针)来修改;这样做的好处是,能帮助编译器进行更好的优化代码,生成更有效率的汇编代码.如 int *restrict ptr, ptr 指向的内存单元只能被 ptr 访问到,任何...
分类:编程语言   时间:2014-09-27 16:23:20    阅读次数:343
490条   上一页 1 ... 44 45 46 47 48 49 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!