6.9lseek函数的原型函数为说明
A: intlseek(constchar*pathname,flags,intperms)
B: ssize_tlseek(intfd,void*buf,size_tcount)
C: FILE*lseek(constchar*path,constchar*mode)
D: off_tlseek(intfd,off_toffset,intwhence)
A: intlseek(constchar*pathname,flags,intperms)
B: ssize_tlseek(intfd,void*buf,size_tcount)
C: FILE*lseek(constchar*path,constchar*mode)
D: off_tlseek(intfd,off_toffset,intwhence)
D
举一反三
- 6.10open函数的原型函数为说明 A: intopen(constchar*pathname,flags,intperms) B: ssize_topen(intfd,void*buf,size_tcount) C: FILE*open(constchar*path,constchar*mode) D: off_topen(intfd,off_toffset,intwhence)
- 6.7fcntl函数的原型函数为说明 A: intfcntl(constchar*pathname,flags,intperms) B: intfcntl(intfd,intcmd,structflock*lock) C: FILE*fcntl(constchar*path,constchar*mode) D: intfcntl(intnumfds,fd_set*readfds,fd_set*writefds,fd_set*exeptfds,structtimeval*timeout)
- 以下read函数的调用形式中,参数类型正确的是( )。 A: read(intfd,char*buf,intcount) B: read(int*buf,intfd,intcount) C: read(intfd,intcount,char*buf) D: read(intcount,char*buf,intfd)
- 指针定义char*constp表示__________是常量;指针定义constchar*p表示__________是常量。
- 以下fread函数的调用形式中,参数类型正确的是( )。 A: fread(char *buf, int size, int count, FILE fd); B: fread(int count, char *buf, int size, FILE fd); C: fread(int size, char *buf, int count, FILE fd); D: fread(int size, int count, char *buf, FILE fd);
内容
- 0
调用lseek函数时,设置第三个参数为SEEK_END,以下哪种说法是正确的
- 1
哪个函数检测文件指针是否到了文件结束的位置。( ) A: rewind() B: fseek() C: next() D: lseek()
- 2
将光标定位在文件开始位置可以使用( )操作完成 A: lseek(fd,0,SEEK_SET) B: lseek(fd,0,SEEK_CUR) C: lseek(fd,0,SEEK_END) D: open(fd,O_RDWR)
- 3
定义函数时若函数名前冠有“*” (如float*fun(){……}),则该函数被称为 A: int型函数 B: float型函数 C: void型函数 D: 指针(型)函数
- 4
请完成下列语句中应填的内容; File pathName=new File(orgs[0]); String[]file Names=path Name. ______;