⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cl

📁 Algorithms for Image Processing and Computer Vision Source Code
💻
字号:
@c ----------------------------------------------------------------------
@node _cleanup, process
@heading @code{_cleanup}

@subheading Description

This is an internal function used to clean up file descriptors when the
program calls @code{exit}. 

@c ----------------------------------------------------------------------
@node clearerr, stdio
@heading @code{clearerr}
@subheading Syntax

@example
#include <stdio.h>

void clearerr(FILE *stream);
@end example

@subheading Description

This function clears the EOF and error indicators for the file
@var{stream}. 

@subheading Return Value

None.

@subheading Example

@example
clearerr(stdout);
@end example

@c ----------------------------------------------------------------------
@node clock, time
@heading @code{clock}
@subheading Syntax

@example
#include <time.h>

clock_t clock(void);
@end example

@subheading Description

This function returns the number of clock ticks since an arbitrary time,
actually, since the first call to @code{clock}, which itself returns
zero.  The number of tics per second is CLOCKS_PER_SEC.

@subheading Return Value

The number of tics.

@subheading Example

@example
printf("%d seconds have elapsed\n", clock()/CLOCKS_PER_SEC);
@end example

@c ----------------------------------------------------------------------
@node close, io
@heading @code{close}
@subheading Syntax

@example
#include <osfcn.h>

int close(int fd);
@end example

@subheading Description

The open file associated with @var{fd} is closed.

@subheading Return Value

Zero if the file was closed, nonzero if @var{fd} was invalid or already closed.

@subheading Example

@example
int fd = open("data", O_RDONLY);
close(fd);
@end example

@c ----------------------------------------------------------------------
@node closedir, file system
@heading @code{closedir}
@subheading Syntax

@example
#include <dirent.h>

int closedir(DIR *dir);
@end example

@subheading Description

This function closes a directory opened by opendir (@pxref{opendir}).

@subheading Return Value

Zero on success, nonzero if @var{dir} is invalid.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -