Octave-Forge - Extra packages for GNU Octave | |
Home · Packages · Developers · Documentation · FAQ · Bugs · Mailing Lists · Links · Code |
00001 /* -*- buffer-read-only: t -*- vi: set ro: */ 00002 /* DO NOT EDIT! GENERATED AUTOMATICALLY! */ 00003 /* Find the length of STRING + 1, but scan at most MAXLEN bytes. 00004 Copyright (C) 2005, 2009-2011 Free Software Foundation, Inc. 00005 00006 This program is free software: you can redistribute it and/or modify 00007 it under the terms of the GNU General Public License as published by 00008 the Free Software Foundation; either version 3 of the License, or 00009 (at your option) any later version. 00010 00011 This program is distributed in the hope that it will be useful, 00012 but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 GNU General Public License for more details. 00015 00016 You should have received a copy of the GNU General Public License 00017 along with this program. If not, see <http://www.gnu.org/licenses/>. */ 00018 00019 #ifndef _STRNLEN1_H 00020 #define _STRNLEN1_H 00021 00022 #include <stddef.h> 00023 00024 00025 #ifdef __cplusplus 00026 extern "C" { 00027 #endif 00028 00029 00030 /* Find the length of STRING + 1, but scan at most MAXLEN bytes. 00031 If no '\0' terminator is found in that many characters, return MAXLEN. */ 00032 /* This is the same as strnlen (string, maxlen - 1) + 1. */ 00033 extern size_t strnlen1 (const char *string, size_t maxlen); 00034 00035 00036 #ifdef __cplusplus 00037 } 00038 #endif 00039 00040 00041 #endif /* _STRNLEN1_H */