Home
last modified time | relevance | path

Searched refs:ptr (Results 1 – 7 of 7) sorted by relevance

/coreutils/src/
Dtac-pipe.c32 char *ptr; member
138 if (lp->ptr > x->p[lp->i].start) in line_ptr_decrement()
141 lp_new.ptr = lp->ptr - 1; in line_ptr_decrement()
147 lp_new.ptr = ONE_PAST_END (x, lp->i - 1) - 1; in line_ptr_decrement()
157 affirm (lp->ptr <= ONE_PAST_END (x, lp->i) - 1); in line_ptr_increment()
158 if (lp->ptr < ONE_PAST_END (x, lp->i) - 1) in line_ptr_increment()
161 lp_new.ptr = lp->ptr + 1; in line_ptr_increment()
167 lp_new.ptr = x->p[lp->i + 1].start; in line_ptr_increment()
180 if (last_bol->ptr == x->p[0].start) in find_bol()
184 last_bol_ptr = tmp.ptr; in find_bol()
[all …]
Djoin.c274 char *ptr = line->buf.buffer; in xfields() local
275 char const *lim = ptr + line->buf.length - 1; in xfields()
277 if (ptr == lim) in xfields()
283 for (; (sep = memchr (ptr, tab, lim - ptr)) != nullptr; ptr = sep + 1) in xfields()
284 extract_field (line, ptr, sep - ptr); in xfields()
289 while (field_sep (*ptr)) in xfields()
290 if (++ptr == lim) in xfields()
296 for (sep = ptr + 1; sep != lim && ! field_sep (*sep); sep++) in xfields()
298 extract_field (line, ptr, sep - ptr); in xfields()
301 for (ptr = sep + 1; ptr != lim && field_sep (*ptr); ptr++) in xfields()
[all …]
Dsort.c1616 char *ptr = line->text, *lim = ptr + line->length - 1; in begfield() local
1624 while (ptr < lim && sword--) in begfield()
1626 while (ptr < lim && *ptr != tab) in begfield()
1627 ++ptr; in begfield()
1628 if (ptr < lim) in begfield()
1629 ++ptr; in begfield()
1632 while (ptr < lim && sword--) in begfield()
1634 while (ptr < lim && blanks[to_uchar (*ptr)]) in begfield()
1635 ++ptr; in begfield()
1636 while (ptr < lim && !blanks[to_uchar (*ptr)]) in begfield()
[all …]
Dnumfmt.c1151 char *ptr = nullptr; in parse_human_number() local
1154 simple_strtod_human (str, &ptr, value, precision, scale_from); in parse_human_number()
1161 if (ptr && *ptr != '\0') in parse_human_number()
1165 quote_n (0, str), quote_n (1, ptr)); in parse_human_number()
Dsystem.h497 ptr_align (void const *ptr, size_t alignment) in ptr_align() argument
499 char const *p0 = ptr; in ptr_align()
/coreutils/tests/csplit/
Dcsplit-io-err.sh40 fwrite (const void *ptr, size_t size, size_t nitems, FILE *stream)
45 const char *p = ptr;
62 fwrite_unlocked (const void *ptr, size_t size, size_t nitems, FILE *stream)
64 return fwrite (ptr, size, nitems, stream);
/coreutils/gl/lib/
Drandread.c49 # define ALIGNED_POINTER(ptr, type) true argument
51 # define ALIGNED_POINTER(ptr, type) ((size_t) (ptr) % alignof (type) == 0) argument