www.delorie.com/djgpp/doc/libc/libc_130.html   search  
libc.a reference

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

_detect_80387

Syntax

 
#include <dos.h>

int _detect_80387(void);

Description

Detects whether a numeric coprocessor is present. Note that floating-point code will work even without a coprocessor, due to the existence of emulation.

Return Value

1 if a coprocessor is present, 0 if not.

Portability

ANSI/ISO C No
POSIX No

Example

 
if (_detect_80387())
  printf("You have a coprocessor\n");


  webmaster   donations   bookstore     delorie software   privacy  
  Copyright 2004   by DJ Delorie     Updated Apr 2004