shithub: riscv

ref: aa8af9c5a32b5f3afe0e612981fe4d9fada43d34
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;
}