shithub: riscv

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