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

Unified Diff: runtime/vm/os.h

Issue 1989513002: strnlen is not always available. (Closed) Base URL: git@github.com:dart-lang/sdk.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | runtime/vm/os_android.cc » ('j') | runtime/vm/os_win.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/os.h
diff --git a/runtime/vm/os.h b/runtime/vm/os.h
index 906432240bbf79dc7d38945796ff55f9e615c2be..ff61aaa52499cd55b2c1bdbfc3092d684e5cad2d 100644
--- a/runtime/vm/os.h
+++ b/runtime/vm/os.h
@@ -110,6 +110,7 @@ class OS {
// Not all platform support strndup.
static char* StrNDup(const char* s, intptr_t n);
+ static intptr_t StrNLen(const char* s, intptr_t n);
// Print formatted output to stdout/stderr for debugging.
static void Print(const char* format, ...) PRINTF_ATTRIBUTE(1, 2);
« no previous file with comments | « no previous file | runtime/vm/os_android.cc » ('j') | runtime/vm/os_win.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698