summaryrefslogblamecommitdiff
path: root/src/ctype/iscntrl.c
blob: cb4114a0602083f444b364461ebd6d91a0df8566 (plain) (tree)
1
2
3
4
5
6
7
                  
                 




                                               






                                   
#include <ctype.h>
#include "libc.h"

int iscntrl(int c)
{
	return (unsigned)c < 0x20 || c == 0x7f;
}

int __iscntrl_l(int c, locale_t l)
{
	return iscntrl(c);
}

weak_alias(__iscntrl_l, iscntrl_l);