delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1992/09/30/11:54:11

Date: Wed, 30 Sep 92 16:33:38 +0100
From: wolter AT wrcm2 DOT urz DOT uni-wuppertal DOT de (Robert Wolter)
To: ESCHN705 AT RZ DOT Braunschweig DOT PTB DOT DBP DOT de DOT BITNET
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: abs()olutely hopeless?

First, a general tip:
Look at the "C" Bible, Kernighan/Ritchie: Programming in C.

There are different standard library functions adapted to the special
types of variables: 

  abs() returns type int, 
  labs() (not implemented on every system) returns long int,
  fabs() returns float (sometimes double)


You will have to include the correct header files "stdlib.h" or
"math.h" (besides "stdio.h" of course) to be able to use them.

  Robert Wolter
  wolter AT wrcm2 DOT urz DOT uni-wuppertal DOT de

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019