strnlen.h revision 69a1fe56
169a1fe56Smrg/* 269a1fe56Smrg * Copyright (c) 2009 Apple Inc. 369a1fe56Smrg * 469a1fe56Smrg * Permission is hereby granted, free of charge, to any person obtaining a 569a1fe56Smrg * copy of this software and associated documentation files (the "Software"), 669a1fe56Smrg * to deal in the Software without restriction, including without limitation 769a1fe56Smrg * the rights to use, copy, modify, merge, publish, distribute, sublicense, 869a1fe56Smrg * and/or sell copies of the Software, and to permit persons to whom the 969a1fe56Smrg * Software is furnished to do so, subject to the following conditions: 1069a1fe56Smrg * 1169a1fe56Smrg * The above copyright notice and this permission notice shall be included in 1269a1fe56Smrg * all copies or substantial portions of the Software. 1369a1fe56Smrg * 1469a1fe56Smrg * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 1569a1fe56Smrg * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 1669a1fe56Smrg * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 1769a1fe56Smrg * THE ABOVE LISTED COPYRIGHT HOLDER(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR 1869a1fe56Smrg * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 1969a1fe56Smrg * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 2069a1fe56Smrg * DEALINGS IN THE SOFTWARE. 2169a1fe56Smrg */ 2269a1fe56Smrg 2369a1fe56Smrg /* 2469a1fe56Smrg * Author: Jeremy Huddleston, Apple Inc. 2569a1fe56Smrg */ 2669a1fe56Smrg 2769a1fe56Smrg#ifndef __STRNLEN_H__ 2869a1fe56Smrg#define __STRNLEN_H__ 1 2969a1fe56Smrg#include <stdlib.h> 3069a1fe56Smrg 3169a1fe56Smrgextern size_t strnlen(const char *s, size_t maxlen); 3269a1fe56Smrg#endif /* __STRNLEN_H__ */ 33