Lines Matching refs:tmpbuf
91 char tmpbuf[64]; variable
121 strlcpy(tmpbuf, (char*)cp, sizeof(tmpbuf)); in edit_head_field()
122 printf("%s", tmpbuf); in edit_head_field()
133 tmpbuf[0] = '\0'; in edit_head_field()
134 if (fgets(tmpbuf, sizeof(tmpbuf), stdin) == NULL) in edit_head_field()
136 if ((tmpbuf[0] == '\0') || (tmpbuf[0] == '\n')) { in edit_head_field()
143 if (sscanf(tmpbuf, "%d", &tmp) != 1) in edit_head_field()
158 tmp = strlen(tmpbuf); in edit_head_field()
161 if (tmpbuf[tmp-1] == '\n') in edit_head_field()
162 tmpbuf[tmp-1] = '\0'; in edit_head_field()
163 strncpy((char*)cp, tmpbuf, f->f_type); in edit_head_field()
187 if (fgets(tmpbuf, sizeof(tmpbuf), stdin) == NULL) in edit_geo()
189 if (sscanf(tmpbuf, "%d", &nsect) != 1) in edit_geo()
193 if (fgets(tmpbuf, sizeof(tmpbuf), stdin) == NULL) in edit_geo()
195 if (sscanf(tmpbuf, "%d", &ntrack) != 1) in edit_geo()
302 if (fgets(tmpbuf, sizeof(tmpbuf), stdin) == NULL) in edit_partition()
304 get_val_cts(d, tmpbuf, &p->p_offset); in edit_partition()
309 if (fgets(tmpbuf, sizeof(tmpbuf), stdin) == NULL) in edit_partition()
311 get_val_cts(d, tmpbuf, &p->p_size); in edit_partition()
315 if (fgets(tmpbuf, sizeof(tmpbuf), stdin) == NULL) in edit_partition()
317 get_fstype(tmpbuf, &p->p_fstype); in edit_partition()
439 if (fgets(tmpbuf, sizeof(tmpbuf), stdin) == NULL) in label_modify()
441 c = tmpbuf[0]; in label_modify()
522 if (fgets(tmpbuf, sizeof(tmpbuf), stdin) == NULL) in main()
525 if (cmd->cmd_name[0] == tmpbuf[0]) in main()