]> git.lizzy.rs Git - plan9front.git/blob - sys/src/libc/port/needsrcquote.c
libregexp: improve the transition to next available thread, instruction, and generation
[plan9front.git] / sys / src / libc / port / needsrcquote.c
1 #include <u.h>
2 #include <libc.h>
3
4 int
5 needsrcquote(int c)
6 {
7         if(c <= ' ')
8                 return 1;
9         if(utfrune("`^#*[]=|\\?${}()'<>&;", c))
10                 return 1;
11         return 0;
12 }