Lines Matching defs:ptr
237 char *ptr;
256 ptr = strchr(buf, '\n');
257 if (ptr != NULL)
258 *ptr = '\0';
260 ptr = strchr(buf, ' ');
261 if (ptr == NULL) {
265 *ptr++ = '\0';
270 if ((title = strdup(ptr)) == NULL) {
281 ptr = strchr(buf, '\n');
282 if (ptr != NULL)
283 *ptr = '\0';
285 ptr = strchr(buf, ' ');
286 if (ptr == NULL) {
291 *ptr++ = '\0';
297 if ((bootfs = strdup(ptr)) == NULL) {
753 char *ptr, *dir;
814 ptr = getenv("autoboot_delay");
815 if (ptr != NULL) {
818 if (strcasecmp(ptr, "NO") != 0)
819 timeout = ptr;
829 ptr = getenv("console");
830 if (ptr != NULL) {
832 (void) printf("Console: %s\n", ptr);
834 (void) printf("%s\n", ptr);
846 ptr = getenv("xen_kernel");
847 if (ptr != NULL) {
849 (void) printf("Xen kernel: %s\n", ptr);
851 (void) printf("%s\n", ptr);
871 ptr = getenv("kernelname");
872 if (ptr != NULL) {
874 (void) printf("Kernel: %s\n", ptr);
876 (void) printf("%s\n", ptr);
882 ptr = getenv("boot-args");
883 if (ptr != NULL) {
885 (void) printf("Boot-args: \"%s\"\n", ptr);
887 (void) printf("%s\n", ptr);
932 char *ptr, *title = NULL;
940 if ((ptr = strchr(opt, '=')) == NULL) {
945 i = ptr - opt;
947 e = atoi(ptr+1);
949 title = ptr+1;