Home | History | Annotate | Download | only in fdisk

Lines Matching defs:LBUF

126 #define LBUF 100
127 static char lbuf[LBUF];
2855 if (!fgets(lbuf, LBUF, stdin))
2857 cp = lbuf;
2867 acc = strtoll(lbuf, &cp, 10);
2900 lbuf[strlen(lbuf) - 1] = 0;
2901 printf("%s is not a valid %s number.\n", lbuf,
2918 for (;; printf("%s is not a valid partition number.\n", lbuf)) {
2921 if (!fgets(lbuf, LBUF, stdin))
2923 lbuf[strlen(lbuf)-1] = '\0';
2924 cp = lbuf;
2956 if (!fgets(lbuf, LBUF, stdin))
2958 len = strlen(lbuf);
2964 lbuf[--len] = 0;
2965 while (len != 0 && lbuf[len - 1] == ' ');
2969 lbuf, length - 1);
2971 strncpy(buf, lbuf, length);