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

📄 di

📁 Algorithms for Image Processing and Computer Vision Source Code
💻
字号:
@c ----------------------------------------------------------------------
@node difftime, time
@heading @code{difftime}
@subheading Syntax

@example
#include <time.h>

double difftime(time_t t1, time_t t0);
@end example

@subheading Description

This function returns the difference in time, in seconds, from @var{t0}
to @var{t1}. 

@subheading Return Value

The number of seconds.

@subheading Example

@example
time_t t1, t0;
double elapsed;
time(&t0);
do_something();
time(&t1);
elapsed = difftime(t1, t0);
@end example

@c ----------------------------------------------------------------------
@node disable, dos
@heading @code{disable}
@subheading Syntax

@example
#include <dos.h>

int disable(void);
@end example

@subheading Description

This function disables interrupts.

@xref{enable}

@subheading Return Value

Returns nonzero if the interrupts had been enabled before this call,
zero if they were already disabled.

@subheading Example

@example
int ints_were_enabled;

ints_were_enabled = disable();
. . . do some stuff . . .
if (ints_were_enabled)
  enable();
@end example

@c ----------------------------------------------------------------------
@node div, math
@heading @code{div}
@subheading Syntax

@example
#include <stdlib.h>

div_t div(int numberator, int denomonator);
@end example

@subheading Description

Returns the quotient and remainder of the division @var{numberator}
divided by @var{denomonator}.  The return type is as follows:

@example
typedef struct @{
  int quot;
  int rem;
@} div_t;
@end example

@subheading Return Value

The results of the division are returned.

@subheading Example

@example
div_t d = div(42, 3);
printf("42 = %d x 3 + %d\n", d.quot, d.rem);
@end example

⌨️ 快捷键说明

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