Sign in
plan9port
/
plan9
/
da3ed55e4e4d2d3052b03df3dd0a40d19f99ea70
/
.
/
src
/
lib9
/
needsrcquote.c
blob: f4cf460cf38c2b3561923376fc3878b04d5a0558 [
file
] [
log
] [
blame
]
#include
<u.h>
#include
<libc.h>
int
needsrcquote
(
int
c
)
{
if
(
c
<=
' '
)
return
1
;
if
(
strchr
(
"`^#*[]=|\\?${}()'<>&;"
,
c
))
return
1
;
return
0
;
}