Home
last modified time | relevance | path

Searched refs:ptrend (Results 1 – 4 of 4) sorted by relevance

/titanic_41/usr/src/cmd/grep/
H A Dgrep.c111 static char *ptr, *ptrend; variable
344 if ((ptrend = memchr(ptr + offset, '\n', count)) == NULL) { in execute()
389 ptrend = ptr + offset; in execute()
392 next_ptr = ptrend + 1; in execute()
397 *ptrend = '\0'; in execute()
404 for (lbuf = linebuf; p < ptrend; ) in execute()
473 *ptrend = '\n'; in succeed()
474 nchars = ptrend - ptr + 1; in succeed()
477 nchars = ptrend - ptr; in succeed()
/titanic_41/usr/src/cmd/grep_xpg4/
H A Dgrep.c810 char *ptr, *ptrend; in grep() local
883 ptrend = ptr + data_len; in grep()
895 ptrend = find_nl(ptr + offset, data_len - offset); in grep()
896 if (ptrend == NULL) { in grep()
948 ptrend = rfind_nl(ptr, data_len); in grep()
961 line_len = ptrend - ptr; in grep()
964 if (bline > ptrend) { in grep()
970 line_len = ptrend - ptr; in grep()
977 *ptrend = '\0'; in grep()
978 line_len = ptrend - ptr; in grep()
[all …]
/titanic_41/usr/src/cmd/egrep/
H A Degrep.y795 char *ptr, *ptrend, *lastptr; in execute() local
833 if((ptrend = memchr(ptr, '\n', buf + count - ptr)) == NULL) { in execute()
864 ptrend = ptr + count; in execute()
868 *ptrend = '\n'; in execute()
931 nchars = blkno - (buf + count - ptrend) - 2; in execute()
939 nchars = ptrend - ptr + 1; in execute()
941 nchars = ptrend - ptr; in execute()
947 ptr = ptrend + 1; in execute()
/titanic_41/usr/src/ucbcmd/sed/
H A Dsed0.c38 union reptr *ptrend; variable
92 ptrend = &ptrspace[PTRSIZE]; in main()
256 if(++rep >= ptrend) in fcomp()
561 if(++rep >= ptrend) in fcomp()