Home
last modified time | relevance | path

Searched refs:nbuf (Results 1 – 3 of 3) sorted by relevance

/PHP-5.5/ext/ereg/
H A Dereg.c409 *nbuf, /* nbuf is used when we grow the buffer */ in php_ereg_replace() local
476 nbuf = emalloc(buf_len); in php_ereg_replace()
477 strncpy(nbuf, buf, buf_len - 1); in php_ereg_replace()
478 nbuf[buf_len - 1] = '\0'; in php_ereg_replace()
480 buf = nbuf; in php_ereg_replace()
514 nbuf = safe_emalloc(buf_len, sizeof(char), 0); in php_ereg_replace()
515 strncpy(nbuf, buf, buf_len-1); in php_ereg_replace()
517 buf = nbuf; in php_ereg_replace()
529 nbuf = safe_emalloc(buf_len, sizeof(char), 0); in php_ereg_replace()
530 strncpy(nbuf, buf, buf_len-1); in php_ereg_replace()
[all …]
/PHP-5.5/ext/fileinfo/libmagic/
H A Dencoding.c72 unsigned char *nbuf = NULL; in file_encoding() local
75 mlen = (nbytes + 1) * sizeof(nbuf[0]); in file_encoding()
76 if ((nbuf = CAST(unsigned char *, calloc((size_t)1, mlen))) == NULL) { in file_encoding()
117 from_ebcdic(buf, nbytes, nbuf); in file_encoding()
119 if (looks_ascii(nbuf, nbytes, *ubuf, ulen)) { in file_encoding()
123 } else if (looks_latin1(nbuf, nbytes, *ubuf, ulen)) { in file_encoding()
136 free(nbuf); in file_encoding()
/PHP-5.5/sapi/nsapi/
H A Dnsapi.c597 netbuf *nbuf = rc->sn->inbuf; in sapi_nsapi_read_post() local
612 length = nbuf->cursize - nbuf->pos; in sapi_nsapi_read_post()
615 memcpy(read_ptr, nbuf->inbuf + nbuf->pos, length); in sapi_nsapi_read_post()
619 nbuf->pos += length; in sapi_nsapi_read_post()

Completed in 18 milliseconds