Revert "usbd - Do not start moused by default when a usb mouse is connected"
[dragonfly.git] / contrib / sendmail-8.14 / libsm / string.c
blobb0b69756997ce5ab87b8b754b5002dcff4308a1e
1 /*
2 * Copyright (c) 2001 Sendmail, Inc. and its suppliers.
3 * All rights reserved.
5 * By using this file, you agree to the terms and conditions set
6 * forth in the LICENSE file which can be found at the top level of
7 * the sendmail distribution.
9 */
11 #include <sm/gen.h>
12 SM_RCSID("@(#)$Id: string.c,v 1.3 2001/09/11 04:04:49 gshapiro Exp $")
14 #include <ctype.h>
15 #include <errno.h>
17 #include <sm/string.h>
20 ** STRIPQUOTES -- Strip quotes & quote bits from a string.
22 ** Runs through a string and strips off unquoted quote
23 ** characters and quote bits. This is done in place.
25 ** Parameters:
26 ** s -- the string to strip.
28 ** Returns:
29 ** none.
31 ** Side Effects:
32 ** none.
35 void
36 stripquotes(s)
37 char *s;
39 register char *p;
40 register char *q;
41 register char c;
43 if (s == NULL)
44 return;
46 p = q = s;
49 c = *p++;
50 if (c == '\\')
51 c = *p++;
52 else if (c == '"')
53 continue;
54 *q++ = c;
55 } while (c != '\0');