getfield
char *getfield();
tag = getfield(&p, ':'); /* PM tag */
type = getfield(&p, ':'); /* PM type */
flags = getfield(&p, ':'); /* flags */
rsmax = getfield(&p, ':'); /* restart count */
state = pstate((unchar) atoi(getfield(&p, ':'))); /* state in nice output format */
cmd = getfield(&p, ':'); /* command */
comment = getfield(&p, '\n'); /* comment */
if (!getfield(&p, limit, 0, &shadow->sp_lstchg))
if (!getfield(&p, limit, 0, &shadow->sp_min))
if (!getfield(&p, limit, 0, &shadow->sp_max))
if (!getfield(&p, limit, 0, &shadow->sp_warn))
if (!getfield(&p, limit, 0, &shadow->sp_inact))
if (!getfield(&p, limit, 0, &shadow->sp_expire))
if (!getfield(&p, limit, 1, &shadow->sp_flag))
if (getfield(&name, 0, &p, fieldsep) == NULL || strlen(name) == 0U) {
if (getfield(&tb, sizeof tmpbuf, &p, fieldsep) == NULL ||
if (getfield(&tb, sizeof tmpbuf, &p, fieldsep) == NULL ||
if (getfield(&name, 0, &p, fieldsep) == NULL || strlen(name) == 0U) {
if (getfield(&tb, sizeof tmpbuf, &p, fieldsep) == NULL ||
if (getfield(&tb, sizeof tmpbuf, &p, fieldsep) == NULL ||
if (getfield(&name, 0, &p, fieldsep) == NULL || strlen(name) == 0U) {
if (getfield(&tb, sizeof tmpbuf, &p, fieldsep) == NULL ||
if (getfield(&tb, sizeof tmpbuf, &p, fieldsep) == NULL ||
while (getfield(&q, sizeof buff, &p, ':') != NULL) {
if (getfield(&name, 0, &p, fieldsep) == NULL || strlen(name) == 0) {
if (getfield(&pass, 0, &p, fieldsep) == NULL) { /*%< field can be empty */
if (getfield(&tb, sizeof tmpbuf, &p, fieldsep) == NULL ||
if (getfield(&tb, sizeof tmpbuf, &p, fieldsep) == NULL ||
if (getfield(&class, 0, &p, fieldsep) == NULL) {
if (getfield(&tb, sizeof tmpbuf, &p, fieldsep) == NULL ||
if (getfield(&tb, sizeof tmpbuf, &p, fieldsep) == NULL ||
if (getfield(&gecos, 0, &p, fieldsep) == NULL) {
if (getfield(&dir, 0, &p, fieldsep) == NULL) {
if (getfield(&shell, 0, &p, fieldsep) == NULL) {
if (getfield(&name, 0, &p, fieldsep) == NULL || strlen(name) == 0U) {
if (getfield(&pass, 0, &p, fieldsep) == NULL) {
if (getfield(&tb, sizeof tmpbuf, &p, fieldsep) == NULL ||
if (getfield(&name, 0, &p, fieldsep) == NULL || strlen(name) == 0U) {
if (getfield(&tb, sizeof tmpbuf, &p, fieldsep) == NULL ||
if (getfield(&proto, 0, &p, fieldsep) == NULL) {
if (getfield(&name, 0, &p, fieldsep) == NULL || strlen(name) == 0U) {
if (getfield(&tb, sizeof tmpbuf, &p, fieldsep) == NULL ||
static char *getfield(char **res, size_t reslen, char **buffer, char delim);
if (!getfield(&p, limit, 0, &shadow->sp_lstchg))
if (!getfield(&p, limit, 0, &shadow->sp_min))
if (!getfield(&p, limit, 0, &shadow->sp_max))
if (!getfield(&p, limit, 0, &shadow->sp_warn))
if (!getfield(&p, limit, 0, &shadow->sp_inact))
if (!getfield(&p, limit, 0, &shadow->sp_expire))
if (!getfield(&p, limit, 1, &shadow->sp_flag))