copy up to maxlen-1 characters; 'dest' must be able to hold maxlen; treat comma as alternate end of 'src' */
| 6858 | /* copy up to maxlen-1 characters; 'dest' must be able to hold maxlen; |
| 6859 | treat comma as alternate end of 'src' */ |
| 6860 | staticfn void |
| 6861 | nmcpy(char *dest, const char *src, int maxlen) |
| 6862 | { |
| 6863 | int count; |
| 6864 | |
| 6865 | for (count = 1; count < maxlen; count++) { |
| 6866 | if (*src == ',' || *src == '\0') |
| 6867 | break; /*exit on \0 terminator*/ |
| 6868 | *dest++ = *src++; |
| 6869 | } |
| 6870 | *dest = '\0'; |
| 6871 | } |
| 6872 | |
| 6873 | /* |
| 6874 | * escapes(): escape expansion for showsyms. C-style escapes understood |
no outgoing calls
no test coverage detected