SCCS-vsn: usr.bin/grep/egrep/egrep.c 5.9
SCCS-vsn: usr.bin/rdist/lookup.c 5.2
SCCS-vsn: usr.bin/window/startup.c 3.19
SCCS-vsn: usr.bin/window/string.c 3.9
SCCS-vsn: usr.bin/window/ww.h 3.43
SCCS-vsn: old/refer/refer/refer..c 4.4
SCCS-vsn: old/refer/sortbib/sortbib.c 4.2
-/* refer..c 4.3 86/04/23 */
+/* refer..c 4.4 87/10/22 */
#include <stdio.h>
#include <ctype.h>
#include <stdio.h>
#include <ctype.h>
extern char *artskp(),*fpar();
extern char *trimnl();
extern char *artskp(),*fpar();
extern char *trimnl();
-extern char *getenv(), *sprintf(), *strcpy(), *strcat();
+extern char *getenv(), *strcpy(), *strcat();
-static char *sccsid = "@(#)sortbib.c 4.1 (Berkeley) %G%";
+static char *sccsid = "@(#)sortbib.c 4.2 (Berkeley) %G%";
#endif
#include <stdio.h>
#endif
#include <stdio.h>
FILE *fp[], *tfp;
{
char str[BUF], buff[BUF*8]; /* for tempfile & databases */
FILE *fp[], *tfp;
{
char str[BUF], buff[BUF*8]; /* for tempfile & databases */
- char cmd[80], *sprintf(); /* for using system sort command */
+ char cmd[80]; /* for using system sort command */
long int offset;
int i, length;
long int offset;
int i, length;
-static char sccsid[] = "@(#)egrep.c 5.8 (Berkeley) %G%";
+static char sccsid[] = "@(#)egrep.c 5.9 (Berkeley) %G%";
-strchr(), *strrchr(), *strcpy(), *strncpy(), *strpbrk(), *sprintf(), *malloc();
+strchr(), *strrchr(), *strcpy(), *strncpy(), *strpbrk(), *malloc();
char *
grepxlat(), *fold(), *pfile(), *alternate(), *isolate();
char **args;
char *
grepxlat(), *fold(), *pfile(), *alternate(), *isolate();
char **args;
if (!squirrel)
printf("%s:", file);
else
if (!squirrel)
printf("%s:", file);
else
- sprintf(preamble, "%s:", file);
+ (void)sprintf(preamble, "%s:", file);
if (nflag) {
if (prevmatch)
prevnline = prevnline + nlcount(prevloc, s);
if (nflag) {
if (prevmatch)
prevnline = prevnline + nlcount(prevloc, s);
if (!squirrel)
printf("%ld:", prevnline);
else
if (!squirrel)
printf("%ld:", prevnline);
else
- sprintf(preamble + strlen(preamble),
+ (void)sprintf(preamble + strlen(preamble),
"%ld:", prevnline);
}
if (!squirrel) {
"%ld:", prevnline);
}
if (!squirrel) {
* sees a leading * pattern. Foo!
*/
dummyexpr = malloc((unsigned) strlen(regexpr) + 5);
* sees a leading * pattern. Foo!
*/
dummyexpr = malloc((unsigned) strlen(regexpr) + 5);
- sprintf(dummyexpr, "(.)*%s", regexpr);
+ (void)sprintf(dummyexpr, "(.)*%s", regexpr);
if ((rspencer = regcomp(dummyexpr)) == NULL)
kernighan(args);
return (rspencer->regmust);
if ((rspencer = regcomp(dummyexpr)) == NULL)
kernighan(args);
return (rspencer->regmust);
-static char sccsid[] = "@(#)lookup.c 5.1 (Berkeley) %G%";
+static char sccsid[] = "@(#)lookup.c 5.2 (Berkeley) %G%";
#endif not lint
#include "defs.h"
#endif not lint
#include "defs.h"
continue;
if (action != LOOKUP) {
if (action != INSERT || s->s_type != CONST) {
continue;
if (action != LOOKUP) {
if (action != INSERT || s->s_type != CONST) {
- sprintf(buf, "%s redefined", name);
+ (void)sprintf(buf, "%s redefined", name);
}
if (action == LOOKUP) {
}
if (action == LOOKUP) {
- yyerror(sprintf(buf, "%s undefined", name));
+ (void)sprintf(buf, "%s undefined", name);
+ yyerror(buf);
-static char sccsid[] = "@(#)startup.c 3.18 %G%";
+static char sccsid[] = "@(#)startup.c 3.19 %G%";
if ((home = getenv("HOME")) == 0)
home = ".";
if ((home = getenv("HOME")) == 0)
home = ".";
- return dosource(sprintf(buf, "%.*s/%s",
+ sprintf(buf, "%.*s/%s",
(sizeof buf - sizeof runcom) / sizeof (char) - 1,
(sizeof buf - sizeof runcom) / sizeof (char) - 1,
+ home, runcom);
+ return dosource(buf);
-static char sccsid[] = "@(#)string.c 3.8 %G%";
+static char sccsid[] = "@(#)string.c 3.9 %G%";
#include "string.h"
char *malloc();
#include "string.h"
char *malloc();
char *rindex();
char *strcpy();
char *strcat();
char *rindex();
char *strcpy();
char *strcat();