strcat.c (8fb3f3f68288ae2b1b53dd65e3dd673d83c80f4c) strcat.c (ad906968153f7b35f2e92b49936a22f44d5aa0c0)
1/*
2 * Copyright (c) 1988, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 26 unchanged lines hidden (view full) ---

35static char sccsid[] = "@(#)strcat.c 8.1 (Berkeley) 6/4/93";
36#endif /* LIBC_SCCS and not lint */
37#include <sys/cdefs.h>
38__FBSDID("$FreeBSD$");
39
40#include <string.h>
41
42char *
1/*
2 * Copyright (c) 1988, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 26 unchanged lines hidden (view full) ---

35static char sccsid[] = "@(#)strcat.c 8.1 (Berkeley) 6/4/93";
36#endif /* LIBC_SCCS and not lint */
37#include <sys/cdefs.h>
38__FBSDID("$FreeBSD$");
39
40#include <string.h>
41
42char *
43strcat(s, append)
44 char *s;
45 const char *append;
43strcat(char *__restrict s, const char *__restrict append)
46{
47 char *save = s;
48
49 for (; *s; ++s);
50 while ((*s++ = *append++));
51 return(save);
52}
44{
45 char *save = s;
46
47 for (; *s; ++s);
48 while ((*s++ = *append++));
49 return(save);
50}