normalize file name */
| 165 | |
| 166 | /* normalize file name */ |
| 167 | void regularize(char *s) |
| 168 | { |
| 169 | char *lp; |
| 170 | |
| 171 | for (lp = s; *lp; lp++) /* note: '-' becomes '_' */ |
| 172 | if (!(isalpha(*lp) || isdigit(*lp) || *lp == '$')) |
| 173 | *lp = '_'; |
| 174 | } |
| 175 | |
| 176 | #undef getuid |
| 177 | int |
no test coverage detected