aboutsummaryrefslogtreecommitdiff
path: root/src/lib9/needsrcquote.c
blob: a9e62bc6e28033a7b4e970fdab1398c3637258b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include <u.h>
#include <libc.h>

int
needsrcquote(int c)
{
	if(c <= ' ' || c >= 0x80)
		return 1;
	if(strchr("`^#*[]=|\\?${}()'<>&;", c))
		return 1;
	return 0;
}