본문 바로가기
C 언어

abs

by SpeeDr00t 2016. 7. 9.
반응형

int abs(int j)

#include <stdlib.h>

int
abs(int j)
{
	return(j < 0 ? -j : j);
}
반응형

'C 언어' 카테고리의 다른 글

vsscanf  (0) 2016.07.09
__swsetup  (0) 2016.07.09
strtod  (0) 2016.07.09
atof  (0) 2016.07.09
atoi  (0) 2016.07.09