SCCS-vsn: lib/libc/string/ffs.c 5.4
SCCS-vsn: lib/libc/string/rindex.c 5.6
SCCS-vsn: lib/libc/string/strcat.c 5.4
SCCS-vsn: lib/libc/string/strcpy.c 5.5
SCCS-vsn: lib/libc/string/strdup.c 5.2
SCCS-vsn: lib/libc/string/strerror.c 5.2
SCCS-vsn: lib/libc/string/strftime.c 5.7
SCCS-vsn: lib/libc/string/strmode.c 5.2
SCCS-vsn: lib/libc/string/strspn.c 5.5
SCCS-vsn: lib/libc/string/strtok.c 5.6
SCCS-vsn: lib/libc/string/swab.c 5.5
*/
#if defined(LIBC_SCCS) && !defined(lint)
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char sccsid[] = "@(#)ffs.c 5.3 (Berkeley) %G%";
+static char sccsid[] = "@(#)ffs.c 5.4 (Berkeley) %G%";
#endif /* LIBC_SCCS and not lint */
#endif /* LIBC_SCCS and not lint */
/*
* ffs -- vax ffs instruction
*/
/*
* ffs -- vax ffs instruction
*/
*/
#if defined(LIBC_SCCS) && !defined(lint)
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char sccsid[] = "@(#)rindex.c 5.5 (Berkeley) %G%";
+static char sccsid[] = "@(#)rindex.c 5.6 (Berkeley) %G%";
#endif /* LIBC_SCCS and not lint */
#include <stddef.h>
#endif /* LIBC_SCCS and not lint */
#include <stddef.h>
*/
#if defined(LIBC_SCCS) && !defined(lint)
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char sccsid[] = "@(#)strcat.c 5.3 (Berkeley) %G%";
+static char sccsid[] = "@(#)strcat.c 5.4 (Berkeley) %G%";
#endif /* LIBC_SCCS and not lint */
#endif /* LIBC_SCCS and not lint */
char *
strcat(s, append)
register char *s, *append;
char *
strcat(s, append)
register char *s, *append;
*/
#if defined(LIBC_SCCS) && !defined(lint)
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char sccsid[] = "@(#)strcpy.c 5.4 (Berkeley) %G%";
+static char sccsid[] = "@(#)strcpy.c 5.5 (Berkeley) %G%";
#endif /* LIBC_SCCS and not lint */
#endif /* LIBC_SCCS and not lint */
char *
strcpy(to, from)
register char *to, *from;
char *
strcpy(to, from)
register char *to, *from;
*/
#if defined(LIBC_SCCS) && !defined(lint)
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char sccsid[] = "@(#)strdup.c 5.1 (Berkeley) %G%";
+static char sccsid[] = "@(#)strdup.c 5.2 (Berkeley) %G%";
#endif /* LIBC_SCCS and not lint */
#include <sys/types.h>
#endif /* LIBC_SCCS and not lint */
#include <sys/types.h>
+#include <stddef.h>
+#include <string.h>
+
*/
#if defined(LIBC_SCCS) && !defined(lint)
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char sccsid[] = "@(#)strerror.c 5.1 (Berkeley) %G%";
+static char sccsid[] = "@(#)strerror.c 5.2 (Berkeley) %G%";
#endif /* LIBC_SCCS and not lint */
#endif /* LIBC_SCCS and not lint */
char *
strerror(errnum)
int errnum;
char *
strerror(errnum)
int errnum;
*/
#if defined(LIBC_SCCS) && !defined(lint)
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char sccsid[] = "@(#)strftime.c 5.6 (Berkeley) %G%";
+static char sccsid[] = "@(#)strftime.c 5.7 (Berkeley) %G%";
#endif /* LIBC_SCCS and not lint */
#include <sys/types.h>
#include <sys/time.h>
#include <tzfile.h>
#endif /* LIBC_SCCS and not lint */
#include <sys/types.h>
#include <sys/time.h>
#include <tzfile.h>
static char *afmt[] = {
"Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat",
static char *afmt[] = {
"Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat",
*/
#if defined(LIBC_SCCS) && !defined(lint)
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char sccsid[] = "@(#)strmode.c 5.1 (Berkeley) %G%";
+static char sccsid[] = "@(#)strmode.c 5.2 (Berkeley) %G%";
#endif /* LIBC_SCCS and not lint */
#include <sys/types.h>
#include <sys/stat.h>
#endif /* LIBC_SCCS and not lint */
#include <sys/types.h>
#include <sys/stat.h>
strmode(mode, p)
register mode_t mode;
register char *p;
strmode(mode, p)
register mode_t mode;
register char *p;
}
*p++ = ' '; /* will be a '+' if ACL's implemented */
*p = '\0';
}
*p++ = ' '; /* will be a '+' if ACL's implemented */
*p = '\0';
*/
#if defined(LIBC_SCCS) && !defined(lint)
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char sccsid[] = "@(#)strspn.c 5.4 (Berkeley) %G%";
+static char sccsid[] = "@(#)strspn.c 5.5 (Berkeley) %G%";
#endif /* LIBC_SCCS and not lint */
#endif /* LIBC_SCCS and not lint */
strspn(s, set)
register char *s, *set;
{
strspn(s, set)
register char *s, *set;
{
*/
#if defined(LIBC_SCCS) && !defined(lint)
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char sccsid[] = "@(#)strtok.c 5.5 (Berkeley) %G%";
+static char sccsid[] = "@(#)strtok.c 5.6 (Berkeley) %G%";
#endif /* LIBC_SCCS and not lint */
#endif /* LIBC_SCCS and not lint */
+#include <stddef.h>
+#include <string.h>
* Copyright (c) 1988 Regents of the University of California.
* All rights reserved.
*
* Copyright (c) 1988 Regents of the University of California.
* All rights reserved.
*
+ * This code is derived from software contributed to Berkeley by
+ * Jeffrey Mogul.
+ *
* Redistribution and use in source and binary forms are permitted
* provided that the above copyright notice and this paragraph are
* duplicated in all such forms and that any documentation,
* Redistribution and use in source and binary forms are permitted
* provided that the above copyright notice and this paragraph are
* duplicated in all such forms and that any documentation,
*/
#if defined(LIBC_SCCS) && !defined(lint)
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char sccsid[] = "@(#)swab.c 5.4 (Berkeley) %G%";
+static char sccsid[] = "@(#)swab.c 5.5 (Berkeley) %G%";
#endif /* LIBC_SCCS and not lint */
#endif /* LIBC_SCCS and not lint */
-/*
- * Swab bytes
- * Jeffrey Mogul, Stanford
- */
swab(from, to, n)
register char *from, *to;
register int n;
swab(from, to, n)
register char *from, *to;
register int n;