echo.c (76874) | echo.c (90109) |
---|---|
1/* 2 * Copyright (c) 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 28 unchanged lines hidden (view full) --- 37 The Regents of the University of California. All rights reserved.\n"; 38#endif /* not lint */ 39 40#ifndef lint 41#if 0 42static char sccsid[] = "@(#)echo.c 8.1 (Berkeley) 5/31/93"; 43#endif 44static const char rcsid[] = | 1/* 2 * Copyright (c) 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 28 unchanged lines hidden (view full) --- 37 The Regents of the University of California. All rights reserved.\n"; 38#endif /* not lint */ 39 40#ifndef lint 41#if 0 42static char sccsid[] = "@(#)echo.c 8.1 (Berkeley) 5/31/93"; 43#endif 44static const char rcsid[] = |
45 "$FreeBSD: head/bin/echo/echo.c 76874 2001-05-20 04:37:28Z kris $"; | 45 "$FreeBSD: head/bin/echo/echo.c 90109 2002-02-02 06:36:49Z imp $"; |
46#endif /* not lint */ 47 48#include <stdio.h> 49#include <stdlib.h> 50#include <string.h> 51 | 46#endif /* not lint */ 47 48#include <stdio.h> 49#include <stdlib.h> 50#include <string.h> 51 |
52int main __P((int, char *[])); 53 | |
54int | 52int |
55main(argc, argv) 56 int argc __unused; 57 char *argv[]; | 53main(int argc __unused, char *argv[]) |
58{ 59 int nflag; 60 61 /* This utility may NOT do getopt(3) option parsing. */ 62 if (*++argv && !strcmp(*argv, "-n")) { 63 ++argv; 64 nflag = 1; 65 } --- 18 unchanged lines hidden --- | 54{ 55 int nflag; 56 57 /* This utility may NOT do getopt(3) option parsing. */ 58 if (*++argv && !strcmp(*argv, "-n")) { 59 ++argv; 60 nflag = 1; 61 } --- 18 unchanged lines hidden --- |