yes.c (60987) | yes.c (102944) |
---|---|
1/* 2 * Copyright (c) 1987, 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 --- 27 unchanged lines hidden (view full) --- 36"@(#) Copyright (c) 1987, 1993\n\ 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[] = "@(#)yes.c 8.1 (Berkeley) 6/6/93"; 43#else | 1/* 2 * Copyright (c) 1987, 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 --- 27 unchanged lines hidden (view full) --- 36"@(#) Copyright (c) 1987, 1993\n\ 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[] = "@(#)yes.c 8.1 (Berkeley) 6/6/93"; 43#else |
44static const char rcsid[] = "$FreeBSD: head/usr.bin/yes/yes.c 60987 2000-05-27 22:38:03Z kris $"; | 44static const char rcsid[] = "$FreeBSD: head/usr.bin/yes/yes.c 102944 2002-09-04 23:29:10Z dwmalone $"; |
45#endif 46#endif /* not lint */ 47 48#include <stdio.h> 49 50int | 45#endif 46#endif /* not lint */ 47 48#include <stdio.h> 49 50int |
51main(argc, argv) 52 int argc; 53 char **argv; | 51main(int argc, char **argv) |
54{ 55 if (argc > 1) 56 for(;;) 57 puts(argv[1]); 58 else for (;;) 59 puts("y"); 60} | 52{ 53 if (argc > 1) 54 for(;;) 55 puts(argv[1]); 56 else for (;;) 57 puts("y"); 58} |