다음을 통해 공유


_putchar_nolock, _putwchar_nolock

문자를 쓰는 stdout 스레드가 잠금 하지 않고.

int _putchar_nolock(
   int c 
);
wint_t _putwchar_nolock(
   wchar_t c 
);

매개 변수

  • c
    쓸 문자입니다.

반환 값

putchar, putwchar.

설명

putchar_nolock_putwchar_nolock 버전 없이 동일의 _nolock 다른 스레드에 의해 방해를 보호 되지 않은 경우를 제외 하 고 접미사입니다.다른 스레드 잠금 오버 헤드를 유발 하지 않습니다 때문에 빠를 수 있습니다.스레드로부터 안전한 컨텍스트 단일 스레드 응용 프로그램 또는 격리 스레드 호출 범위 이미 처리 하는 위치에 이러한 함수를 사용 합니다.

일반 텍스트 루틴 매핑

Tchar.h 루틴

_UNICODE 및 _mbcs가 정의 되어 있지 않습니다

_Mbcs가 정의

_Unicode가 정의

_puttchar_nolock

_putchar_nolock

_putchar_nolock

_putwchar_nolock

요구 사항

루틴

필수 헤더

_putchar_nolock

<stdio.h>

_putwchar_nolock

<stdio.h> 또는 <wchar.h>

콘솔에서 지원 되지 않습니다 Windows 스토어 응용 프로그램입니다.콘솔에 연결 된 표준 스트림 핸들 stdin, stdout, 및 stderr, C 런타임 함수를 사용 하기 전에 이동 해야 Windows 스토어 응용 프로그램입니다.자세한 호환성에 대 한 내용은 호환성 소개에서 합니다.

라이브러리

모든 버전의 C 런타임 라이브러리.

예제

// crt_putchar_nolock.c
/* This program uses putchar to write buffer
 * to stdout. If an error occurs, the program
 * stops before writing the entire buffer.
 */

#include <stdio.h>

int main( void )
{
   FILE *stream;
   char *p, buffer[] = "This is the line of output\n";
   int  ch;

   ch = 0;

   for( p = buffer; (ch != EOF) && (*p != '\0'); p++ )
      ch = _putchar_nolock( *p );
}

Output

This is the line of output

해당 .NET Framework 항목

참고 항목

참조

스트림 I/O

fputc, fputwc

fgetc, fgetwc