
{"id":18562,"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","status":"publish","type":"post","link":"https:\/\/www.trueangle.org\/index.php\/2010\/01\/09\/code-library-libsrcinst\/","title":{"rendered":"code related to library libsrcinst"},"content":{"rendered":"<pre>\n\/* Find the length of STRING + 1, but scan at most MAXLEN bytes.\n   Copyright (C) 2005 Free Software Foundation, Inc.\n\n   This program is free software; you can redistribute it and\/or modify it\n   under the terms of the GNU Library General Public License as published\n   by the Free Software Foundation; either version 3, or (at your option)\n   any later version.\n\n   This program is distributed in the hope that it will be useful,\n   but WITHOUT ANY WARRANTY; without even the implied warranty of\n   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n   Library General Public License for more details.\n\n   You should have received a copy of the GNU Library General Public\n   License along with this program; if not, write to the Free Software\n   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,\n   USA.  *\/\n\n#ifdef HAVE_CONFIG_H\n# include &lt;config.h&gt;\n#endif\n\n\/* Specification.  *\/\n#include \"strnlen1.h\"\n\n#include &lt;string.h&gt;\n\n\/* Find the length of STRING + 1, but scan at most MAXLEN bytes.\n   If no '' terminator is found in that many characters, return MAXLEN.  *\/\n\/* This is the same as strnlen (string, maxlen - 1) + 1.  *\/\nsize_t\nstrnlen1 (const char *string, size_t maxlen)\n{\n  const char *end = memchr (string, '', maxlen);\n  if (end != NULL)\n    return end - string + 1;\n  else\n    return maxlen;\n}\n<\/pre>\n<p><a style=\"font-family:Inconsolata;\" href=\"http:\/\/tigcc.ticalc.org\/doc\/gnuexts.html\">http:\/\/tigcc.ticalc.org\/doc\/gnuexts.html<\/a><br \/>\n<a style=\"font-family:Inconsolata;\" 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\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;code related to library libsrcinst&#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":[83],"tags":[1466],"_links":{"self":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/18562"}],"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=18562"}],"version-history":[{"count":0,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/18562\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/media?parent=18562"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/categories?post=18562"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/tags?post=18562"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}