bp = news;
obuflen = (inlen / 4) * 3;
+ if(obuflen == 0) {
+ free(news);
+ return NULL;
+ }
outbuf = (unsigned char*)malloc(obuflen);
outp = outbuf;
const char *cp;
size_t srchStrLen = strlen(str);
char c = str[0];
+
+ if(!inText) {
+ return NULL;
+ }
/* last char * we can search in inText for start of str */
const char *endCp = inText + inTextLen - srchStrLen;
*consumed = 0;
const char *cp = inText;
const char *newline = NULL; // if we found a newline, this points to the first one
+
+ if(!inText) {
+ return NULL;
+ }
while(inTextLen) {
char c = *cp;