by Larry Doolittle.
(int) ar_extract_list->size, time_string(ar_extract_list->mtime));
}
if ((funct & display) || (funct & verbose)){
- printf("%s\n", ar_extract_list->name);
+ puts(ar_extract_list->name);
}
ar_extract_list = ar_extract_list->next;
}
(int) ar_extract_list->size, time_string(ar_extract_list->mtime));
}
if ((funct & display) || (funct & verbose)){
- printf("%s\n", ar_extract_list->name);
+ puts(ar_extract_list->name);
}
ar_extract_list = ar_extract_list->next;
}
field_length = strlen(field);
field_start += (field_length + 1);
if (strstr(field, argument) == field) {
- printf("%s\n", field + strlen(argument) + 2);
+ puts(field + strlen(argument) + 2);
}
free(field);
}
if (m>=n && strncmp(s+m-n, *argv, n)==0)
s[m-n] = '\0';
}
- printf("%s\n", s);
+ puts(s);
return EXIT_SUCCESS;
}
if (m>=n && strncmp(s+m-n, *argv, n)==0)
s[m-n] = '\0';
}
- printf("%s\n", s);
+ puts(s);
return EXIT_SUCCESS;
}
/* Print OUTPUT (after ALL that!) */
t_buff = xmalloc(201);
strftime(t_buff, 200, date_fmt, &tm_time);
- printf("%s\n", t_buff);
+ puts(t_buff);
return EXIT_SUCCESS;
}
perror_msg_and_die("%s", *argv);
}
for (ep = environ; *ep; ep++)
- printf("%s\n", *ep);
+ puts(*ep);
return 0;
}
if (v->type == integer)
printf ("%d\n", v->u.i);
- else
- printf ("%s\n", v->u.s);
+ else
+ puts (v->u.s);
exit (null (v));
}
if (no_group) {
if(name_not_number && user)
- printf("%s\n",user);
+ puts(user);
else
printf("%ld\n", pwnam);
} else if (no_user) {
if(name_not_number && group)
- printf("%s\n", group);
+ puts(group);
else
printf("%ld\n", grnam);
} else {
/* Print OUTPUT (after ALL that!) */
t_buff = xmalloc(201);
strftime(t_buff, 200, date_fmt, &tm_time);
- printf("%s\n", t_buff);
+ puts(t_buff);
return EXIT_SUCCESS;
}
field_length = strlen(field);
field_start += (field_length + 1);
if (strstr(field, argument) == field) {
- printf("%s\n", field + strlen(argument) + 2);
+ puts(field + strlen(argument) + 2);
}
free(field);
}
perror_msg_and_die("%s", *argv);
}
for (ep = environ; *ep; ep++)
- printf("%s\n", *ep);
+ puts(*ep);
return 0;
}
if (v->type == integer)
printf ("%d\n", v->u.i);
- else
- printf ("%s\n", v->u.s);
+ else
+ puts (v->u.s);
exit (null (v));
}
}
/* just grep -l: print just the filename, but only if we grepped the line in the file */
else if (print_files_with_matches && !print_match_counts && nmatches > 0) {
- printf("%s\n", cur_file);
+ puts(cur_file);
}
if (stat (buf, &filestat) == 0
&& filestat.st_mode & S_IXUSR)
{
- printf ("%s\n", buf);
+ puts(buf);
found = 1;
break;
}
}
/* just grep -l: print just the filename, but only if we grepped the line in the file */
else if (print_files_with_matches && !print_match_counts && nmatches > 0) {
- printf("%s\n", cur_file);
+ puts(cur_file);
}
/* vi: set sw=4 ts=4: */
/*
- * $Id: hostname.c,v 1.26 2001/03/09 21:24:12 andersen Exp $
+ * $Id: hostname.c,v 1.27 2001/05/16 14:21:09 kraai Exp $
* Mini hostname implementation for busybox
*
* Copyright (C) 1999 by Randolph Chung <tausq@debian.org>
if (!s)
s = buf;
*s = 0;
- printf("%s\n", buf);
+ puts(buf);
} else if (opt_domain) {
s = strchr(buf, '.');
- printf("%s\n", (s ? s + 1 : ""));
+ puts(s ? s + 1 : "");
} else if (opt_ip) {
h = gethostbyname(buf);
if (!h) {
printf("Host not found\n");
exit(1);
}
- printf("%s\n", inet_ntoa(*(struct in_addr *) (h->h_addr)));
+ puts(inet_ntoa(*(struct in_addr *) (h->h_addr)));
} else {
- printf("%s\n", buf);
+ puts(buf);
}
}
return(0);
if (no_group) {
if(name_not_number && user)
- printf("%s\n",user);
+ puts(user);
else
printf("%ld\n", pwnam);
} else if (no_user) {
if(name_not_number && group)
- printf("%s\n", group);
+ puts(group);
else
printf("%ld\n", grnam);
} else {
cwd = xgetcwd((char *)cwd);
if (!cwd)
cwd = unknown;
- printf( "%s\n", cwd);
+ puts(cwd);
return EXIT_SUCCESS;
}
if (v == NULL) {
char **e;
for (e = environ; *e; e++) {
- printf( "%s\n", *e);
+ puts(*e);
}
return 0;
}
/* vi: set sw=4 ts=4: */
/*
- * $Id: hostname.c,v 1.26 2001/03/09 21:24:12 andersen Exp $
+ * $Id: hostname.c,v 1.27 2001/05/16 14:21:09 kraai Exp $
* Mini hostname implementation for busybox
*
* Copyright (C) 1999 by Randolph Chung <tausq@debian.org>
if (!s)
s = buf;
*s = 0;
- printf("%s\n", buf);
+ puts(buf);
} else if (opt_domain) {
s = strchr(buf, '.');
- printf("%s\n", (s ? s + 1 : ""));
+ puts(s ? s + 1 : "");
} else if (opt_ip) {
h = gethostbyname(buf);
if (!h) {
printf("Host not found\n");
exit(1);
}
- printf("%s\n", inet_ntoa(*(struct in_addr *) (h->h_addr)));
+ puts(inet_ntoa(*(struct in_addr *) (h->h_addr)));
} else {
- printf("%s\n", buf);
+ puts(buf);
}
}
return(0);
cwd = xgetcwd((char *)cwd);
if (!cwd)
cwd = unknown;
- printf( "%s\n", cwd);
+ puts(cwd);
return EXIT_SUCCESS;
}
if (v == NULL) {
char **e;
for (e = environ; *e; e++) {
- printf( "%s\n", *e);
+ puts(*e);
}
return 0;
}
if (stat (buf, &filestat) == 0
&& filestat.st_mode & S_IXUSR)
{
- printf ("%s\n", buf);
+ puts(buf);
found = 1;
break;
}