summaryrefslogtreecommitdiff
path: root/app/xwininfo/strnlen.h
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2010-11-25 21:55:10 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2010-11-25 21:55:10 +0000
commit5673405fda589b3fa44c760f6a7ad2da4736ac14 (patch)
tree96bae00132299d9f39ca723f3bd45b3bca499418 /app/xwininfo/strnlen.h
parent7a133c3f48de4e64026aae06c02760ffe9f7908a (diff)
Update to xwininfo 1.1.1. rewritten to use XCB.
Diffstat (limited to 'app/xwininfo/strnlen.h')
-rw-r--r--app/xwininfo/strnlen.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/app/xwininfo/strnlen.h b/app/xwininfo/strnlen.h
new file mode 100644
index 000000000..e1cdb8510
--- /dev/null
+++ b/app/xwininfo/strnlen.h
@@ -0,0 +1,32 @@
+/*
+ * Copyright (c) 2009 Apple Inc.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE ABOVE LISTED COPYRIGHT HOLDER(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
+ * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
+ * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ */
+
+ /*
+ * Author: Jeremy Huddleston, Apple Inc.
+ */
+
+#ifndef __STRNLEN_H__
+#define __STRNLEN_H__ 1
+#include <stdlib.h>
+
+extern size_t strnlen(const char *s, size_t maxlen);
+#endif /* __STRNLEN_H__ */