
{"id":239,"date":"2010-01-09T16:55:48","date_gmt":"2010-01-09T16:55:48","guid":{"rendered":"http:\/\/froisa.com\/?p=239"},"modified":"2010-01-09T16:55:48","modified_gmt":"2010-01-09T16:55:48","slug":"code-library-libsrcinst-2-5","status":"publish","type":"post","link":"https:\/\/www.trueangle.org\/index.php\/2010\/01\/09\/code-library-libsrcinst-2-5\/","title":{"rendered":"code library \/libsrcinst-2.5"},"content":{"rendered":"<p><code><br \/>\n\/* Find the length of STRING + 1, but scan at most MAXLEN bytes.<br \/>\n   Copyright (C) 2005 Free Software Foundation, Inc.<\/p>\n<p>   This program is free software; you can redistribute it and\/or modify it<br \/>\n   under the terms of the GNU Library General Public License as published<br \/>\n   by the Free Software Foundation; either version 3, or (at your option)<br \/>\n   any later version.<\/p>\n<p>   This program is distributed in the hope that it will be useful,<br \/>\n   but WITHOUT ANY WARRANTY; without even the implied warranty of<br \/>\n   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU<br \/>\n   Library General Public License for more details.<\/p>\n<p>   You should have received a copy of the GNU Library General Public<br \/>\n   License along with this program; if not, write to the Free Software<br \/>\n   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,<br \/>\n   USA.  *\/<\/p>\n<p>#ifdef HAVE_CONFIG_H<br \/>\n# include &lt;config.h&gt;<br \/>\n#endif<\/p>\n<p>\/* Specification.  *\/<br \/>\n#include \"strnlen1.h\"<\/p>\n<p>#include &lt;string.h&gt;<\/p>\n<p>\/* Find the length of STRING + 1, but scan at most MAXLEN bytes.<br \/>\n   If no '' terminator is found in that many characters, return MAXLEN.  *\/<br \/>\n\/* This is the same as strnlen (string, maxlen - 1) + 1.  *\/<br \/>\nsize_t<br \/>\nstrnlen1 (const char *string, size_t maxlen)<br \/>\n{<br \/>\n  const char *end = memchr (string, '', maxlen);<br \/>\n  if (end != NULL)<br \/>\n    return end - string + 1;<br \/>\n  else<br \/>\n    return maxlen;<br \/>\n}<br \/>\n<\/code><br \/>\n<a href=\"http:\/\/ftp.gnu.org\/gnu\/sourceinstall\/libsrcinst-2.5.tar.gz\">http:\/\/ftp.gnu.org\/gnu\/sourceinstall\/libsrcinst-2.5.tar.gz<\/a><br \/>\n<a href=\"http:\/\/tigcc.ticalc.org\/doc\/gnuexts.html\">http:\/\/tigcc.ticalc.org\/doc\/gnuexts.html<\/a><br \/>\n<a href=\"http:\/\/gcc.gnu.org\/extensions.html\">http:\/\/gcc.gnu.org\/extensions.html<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\/* Find the length of STRING + 1, but scan at most MAXLEN bytes. Copyright (C) 2005 Free Software Foundation, Inc. This program is free software; you can redistribute it and\/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 3, or (at &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.trueangle.org\/index.php\/2010\/01\/09\/code-library-libsrcinst-2-5\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;code library \/libsrcinst-2.5&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[105],"tags":[620,1503],"_links":{"self":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/239"}],"collection":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/comments?post=239"}],"version-history":[{"count":0,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/239\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/media?parent=239"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/categories?post=239"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/tags?post=239"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}