needsrcquote.c 152 B

123456789101112
  1. #include <u.h>
  2. #include <libc.h>
  3. int
  4. needsrcquote(int c)
  5. {
  6. if(c <= ' ')
  7. return 1;
  8. if(utfrune("`^#*[]=|\\?${}()'<>&;", c))
  9. return 1;
  10. return 0;
  11. }