본문 바로가기
C 언어

getchar

by SpeeDr00t 2016. 7. 9.
반응형

int getchar(void)



#include <stdio.h>

/*
 * A subroutine version of the macro getchar_unlocked.
 */
#undef getchar_unlocked

int
getchar_unlocked(void)
{
	return (getc_unlocked(stdin));
}


/*
 * A subroutine version of the macro getchar.
 */

#undef getchar

int
getchar(void)
{
	return (getc(stdin));
}
반응형

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

putchar  (0) 2016.07.09
perror  (0) 2016.07.09
getc  (0) 2016.07.09
gets  (0) 2016.07.09
puts  (0) 2016.07.09