1/*- 2 * Copyright (c) 1983, 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 --- 30 unchanged lines hidden (view full) --- 39 40#if 0 41#ifndef lint 42static char sccsid[] = "@(#)uuencode.c 8.2 (Berkeley) 4/2/94"; 43#endif /* not lint */ 44#endif 45 46#include <sys/cdefs.h> |
47__FBSDID("$FreeBSD: head/usr.bin/uuencode/uuencode.c 96942 2002-05-19 11:17:17Z jmallett $"); |
48 49/* 50 * uuencode [input] output 51 * 52 * Encode a file so it can be mailed to a remote system. 53 */ 54#include <sys/param.h> 55#include <sys/socket.h> --- 22 unchanged lines hidden (view full) --- 78 struct stat sb; 79 int base64; 80 char ch; 81 char *outfile; 82 83 base64 = 0; 84 outfile = NULL; 85 |
86 if (strcmp(argv[0], "b64encode") == 0) 87 base64 = 1; 88 |
89 while ((ch = getopt(argc, argv, "mo:")) != -1) { 90 switch (ch) { 91 case 'm': 92 base64 = 1; 93 break; 94 case 'o': 95 outfile = optarg; 96 break; --- 128 unchanged lines hidden --- |