Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(34)

Side by Side Diff: src/shared/platform/osx/strnlen_osx.c

Issue 1985153002: Delete shared/platform/osx/strnlen_osx.c. (Closed) Base URL: https://chromium.googlesource.com/native_client/src/native_client.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/shared/platform/build.scons ('k') | src/shared/platform/platform.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 /*
2 * Copyright 2008 The Native Client Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file.
5 */
6
7
8 #include <sys/stat.h>
9 #include <sys/types.h>
10
11 #include <fcntl.h>
12 #include <string.h>
13 #include <unistd.h>
14
15 size_t strnlen(const char* string, size_t max);
16
17 size_t strnlen(const char* string, size_t max) {
18 const char* end = (const char*)memchr(string, '\0', max);
19 return end ? (size_t)(end - string) : max;
20 }
OLDNEW
« no previous file with comments | « src/shared/platform/build.scons ('k') | src/shared/platform/platform.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698