reactos/sdk/lib/crt/math/abs.c

17 lines
215 B
C
Raw Permalink Normal View History

/* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
#ifdef _MSC_VER
#pragma warning(disable: 4164)
#pragma function(abs)
#endif
/*
* @implemented
*/
int
__cdecl
abs(int j)
{
return j<0 ? -j : j;
}