shithub: riscv

ref: abe0534492a790de821b520129c70628ba54ed48
dir: /sys/src/libc/port/needsrcquote.c/

View raw version
#include <u.h>
#include <libc.h>

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