plan9port/src/lib9/needsrcquote.c

13 lines
151 B
C
Raw Normal View History

2003-11-23 18:12:54 +00:00
#include <u.h>
#include <libc.h>
int
needsrcquote(int c)
{
if(c <= ' ')
return 1;
if(strchr("`^#*[]=|\\?${}()'<>&;", c))
return 1;
return 0;
}