Lines Matching refs:buff
42 char buff[10]; in format_str() local
56 sprintf(buff, "%08lX", (long)TotalBytes); in format_str()
57 strncat(obuff, buff, (obuff_siz - 1) - strlen(obuff)); in format_str()
63 sprintf(buff, "%02X ", *(ibuff + i)); in format_str()
64 strncat(obuff, buff, (obuff_siz - 1) - strlen(obuff)); in format_str()
75 sprintf(buff, "%c", in format_str()
77 strncat(obuff, buff, (obuff_siz - 1) - strlen(obuff)); in format_str()
86 char buff[10]; in format_raw() local
99 sprintf(buff, "%08lX ", (long)TotalBytes); in format_raw()
100 strncat(obuff, buff, (obuff_siz - 1) - strlen(obuff)); in format_raw()
102 sprintf(buff, "%02X", *(ibuff + i)); in format_raw()
103 strncat(obuff, buff, (obuff_siz - 1) - strlen(obuff)); in format_raw()
109 int dump_data(FILE * stream, const char *buff, const size_t buff_siz, in dump_data() argument
115 buff_curr = (char *)buff; in dump_data()
180 char *buff; in do_dump() local
183 if ((buff = (char *)ALLOC(args->htrsiz * BLK_SIZE)) == NULL) { in do_dump()
188 memset(buff, 0, args->htrsiz * BLK_SIZE); in do_dump()
195 FREE(buff); in do_dump()
202 FREE(buff); in do_dump()
208 NumBytes = Read(fd, buff, args->htrsiz * BLK_SIZE); in do_dump()
214 dump_data(stdout, buff, NumBytes, 16, 0, FMT_STR); in do_dump()
218 FREE(buff); in do_dump()