strrchr.c (229368) | strrchr.c (229571) |
---|---|
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 --- 17 unchanged lines hidden (view full) --- 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 */ 29 30#if defined(LIBC_SCCS) && !defined(lint) 31static char sccsid[] = "@(#)rindex.c 8.1 (Berkeley) 6/4/93"; 32#endif /* LIBC_SCCS and not lint */ 33#include <sys/cdefs.h> | 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 --- 17 unchanged lines hidden (view full) --- 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 */ 29 30#if defined(LIBC_SCCS) && !defined(lint) 31static char sccsid[] = "@(#)rindex.c 8.1 (Berkeley) 6/4/93"; 32#endif /* LIBC_SCCS and not lint */ 33#include <sys/cdefs.h> |
34__FBSDID("$FreeBSD: head/lib/libc/string/strrchr.c 229368 2012-01-03 07:14:01Z ed $"); | 34__FBSDID("$FreeBSD: head/lib/libc/string/strrchr.c 229571 2012-01-05 10:32:53Z ed $"); |
35 36#include <stddef.h> 37#include <string.h> 38 39char * 40strrchr(const char *p, int ch) 41{ 42 char *save; --- 4 unchanged lines hidden (view full) --- 47 if (*p == c) 48 save = (char *)p; 49 if (*p == '\0') 50 return (save); 51 } 52 /* NOTREACHED */ 53} 54 | 35 36#include <stddef.h> 37#include <string.h> 38 39char * 40strrchr(const char *p, int ch) 41{ 42 char *save; --- 4 unchanged lines hidden (view full) --- 47 if (*p == c) 48 save = (char *)p; 49 if (*p == '\0') 50 return (save); 51 } 52 /* NOTREACHED */ 53} 54 |
55__strong_reference(strrchr, rindex); | 55__weak_reference(strrchr, rindex); |