Deleted Added
full compact
wcslen.c (77117) wcslen.c (86170)
1/*-
2 * Copyright (c)1999 Citrus Project,
3 * 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

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

25 *
26 * citrus Id: wcslen.c,v 1.1 1999/12/29 21:47:45 tshiozak Exp
27 */
28
29#include <sys/cdefs.h>
30#if defined(LIBC_SCCS) && !defined(lint)
31__RCSID("$NetBSD: wcslen.c,v 1.1 2000/12/23 23:14:36 itojun Exp $");
32#endif /* LIBC_SCCS and not lint */
1/*-
2 * Copyright (c)1999 Citrus Project,
3 * 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

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

25 *
26 * citrus Id: wcslen.c,v 1.1 1999/12/29 21:47:45 tshiozak Exp
27 */
28
29#include <sys/cdefs.h>
30#if defined(LIBC_SCCS) && !defined(lint)
31__RCSID("$NetBSD: wcslen.c,v 1.1 2000/12/23 23:14:36 itojun Exp $");
32#endif /* LIBC_SCCS and not lint */
33#ifndef lint
34static const char rcsid[] =
35 "$FreeBSD: head/lib/libc/string/wcslen.c 77117 2001-05-24 08:47:42Z obrien $";
36#endif
33__FBSDID("$FreeBSD: head/lib/libc/string/wcslen.c 86170 2001-11-07 19:55:16Z obrien $");
37
38#include <assert.h>
39#include <wchar.h>
40
41size_t
42wcslen(s)
43 const wchar_t *s;
44{
45 const wchar_t *p;
46
47 p = s;
48 while (*p)
49 p++;
50
51 return p - s;
52}
34
35#include <assert.h>
36#include <wchar.h>
37
38size_t
39wcslen(s)
40 const wchar_t *s;
41{
42 const wchar_t *p;
43
44 p = s;
45 while (*p)
46 p++;
47
48 return p - s;
49}