btowc.c\multibyte\src - musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/src/multibyte/btowc.c
blob: 8acd0a2cf1002ccda866949f0c528bd3bdd6fa50 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
#include <stdio.h>
#include <wchar.h>
#include <stdlib.h>
#include "internal.h"
wint_t btowc(int c)
{
	int b = (unsigned char)c;
	return b<128U ? b : (MB_CUR_MAX==1 && c!=EOF) ? CODEUNIT(c) : WEOF;
}
generated by cgit v1.2.1 (git 2.18.0) at 2025年09月05日 19:47:51 +0000

AltStyle によって変換されたページ (->オリジナル) /