needsrcquote.c (164B)
1 #include <u.h> 2 #include <libc.h> 3 4 int 5 needsrcquote(int c) 6 { 7 if(c <= ' ' || c >= 0x80) 8 return 1; 9 if(strchr("`^#*[]=|\\?${}()'<>&;", c)) 10 return 1; 11 return 0; 12 }
plan9portfork of plan9port with libvec, libstr and libsdb | |
| Log | Files | Refs | README | LICENSE |