if (s[PL_strlen(s)-1] == '\r' || s[PL_strlen(s)-1] == '\n') s[PL_strlen(s)-1] = '\0';
if (s[nsCRT::strlen(s)-1] == '\r' || s[nsCRT::strlen(s)-1] == '\n') s[nsCRT::strlen(s)-1] = '\0';
test_passwd_prompt (PK11SlotInfo *slot, void *wincx){  char buf[2048], *s;  fprintf(stdout, "#### Password required: ");  s = fgets(buf, sizeof(buf)-1, stdin);  if (!s) return s;  if (s[PL_strlen(s)-1] == '\r' ||	  s[PL_strlen(s)-1] == '\n')	s[PL_strlen(s)-1] = '\0';  return s;}