想看一下子VS2010中abs函数的写法

想看一下VS2010中abs函数的写法谁能帮忙贴一下VS2010中abs()函数的代码?先行谢过~~[解决办法]return a 0

想看一下VS2010中abs函数的写法
谁能帮忙贴一下VS2010中abs()函数的代码?
先行谢过~~
[解决办法]


    return a < 0 ? -a : a;

[解决办法]
C:\Program Files\Microsoft Visual Studio 10.0\VC\crt\src\abs.c
/***
*abs.c - find absolute value
*
*       Copyright (c) Microsoft Corporation. All rights reserved.
*
*Purpose:
*       defines abs() - find the absolute value of an int.
*
*******************************************************************************/

#include <cruntime.h>
#include <stdlib.h>

#pragma function(abs, _abs64)

/***
*int abs(number) - find absolute value of number
*
*Purpose:
*       Returns the absolute value of number (if number >= 0, returns number,
*       else returns -number).
*
*Entry:
*       int number - number to find absolute value of
*
*Exit:
*       returns the aboslute value of number
*
*Exceptions:
*
*******************************************************************************/

int __cdecl abs (
        int number
        )
{
        return( number>=0 ? number : -number );
}
__int64 __cdecl _abs64(
        __int64 num
        )
{
        return (num >=0 ? num : -num);
}