{"id":19995,"date":"2014-02-21T20:55:30","date_gmt":"2014-02-21T20:55:30","guid":{"rendered":"http:\/\/ok-cleek.com\/blogs\/?p=19995"},"modified":"2014-02-21T21:13:07","modified_gmt":"2014-02-21T21:13:07","slug":"wrong","status":"publish","type":"post","link":"https:\/\/ok-cleek.com\/blogs\/?p=19995","title":{"rendered":"WRONG"},"content":{"rendered":"<p>This is a shitty way to test for a buffer full of zeros.<\/p>\n<pre>\r\nbool testZeros(unsigned char *p, int len)\r\n{\r\n    for (int i = 0; i < len; i++)\r\n    {\r\n        if (*p != 0)\r\n            return false;\r\n    }\r\n    return true;\r\n}\r\n<\/pre>\n<p>It's like a teenager who gets a job doing surveys. He goes to the first house on the street, knocks, gets no answer. He writes \"Not Home\" in his log book. Then he shrugs and writes \"Not Home\" next to all the slots for all the other houses on the street, too. Goes home and jerks off for a hour. And he does this every day for a year.<\/p>\n<p>And then someone spends weeks trying to figure out why nobody from that block is ever home.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is a shitty way to test for a buffer full of zeros. bool testZeros(unsigned char *p, int len) { for (int i = 0; i < len; i++) { if (*p != 0) return false; } return true; } It's like a teenager who gets a job doing surveys. He goes to the first [&hellip;]\n<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-19995","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/ok-cleek.com\/blogs\/index.php?rest_route=\/wp\/v2\/posts\/19995","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ok-cleek.com\/blogs\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ok-cleek.com\/blogs\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ok-cleek.com\/blogs\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/ok-cleek.com\/blogs\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=19995"}],"version-history":[{"count":5,"href":"https:\/\/ok-cleek.com\/blogs\/index.php?rest_route=\/wp\/v2\/posts\/19995\/revisions"}],"predecessor-version":[{"id":20003,"href":"https:\/\/ok-cleek.com\/blogs\/index.php?rest_route=\/wp\/v2\/posts\/19995\/revisions\/20003"}],"wp:attachment":[{"href":"https:\/\/ok-cleek.com\/blogs\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=19995"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ok-cleek.com\/blogs\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=19995"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ok-cleek.com\/blogs\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=19995"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}