// .\" (****************************************************************************) // .\" (* (C) Copyright 1992 Universidade Estadual de Campinas (UNICAMP) *) // .\" (* Campinas, SP, Brazil *) // .\" (* *) // .\" (* Authors: *) // .\" (* *) // .\" (* Tomasz Kowaltowski - CS Dept, UNICAMP *) // .\" (* Claudio L. Lucchesi - CS Dept, UNICAMP *) // .\" (* Jorge Stolfi - CS Dept, UNICAMP *) // .\" (* *) // .\" (* This file can be freely distributed, modified, and used for any *) // .\" (* non-commercial purpose, provided that this copyright and authorship *) // .\" (* notice be included in any copy or derived version of this file. *) // .\" (* *) // .\" (* DISCLAIMER: This software is offered ``as is'', without any guarantee *) // .\" (* as to fitness for any particular purpose. Neither the copyright *) // .\" (* holder nor the authors or their employers can be held responsible for *) // .\" (* any damages that may result from its use. *) // .\" (****************************************************************************) // .\" // .\" Last modified on Tue Feb 11 17:43:25 PST 1992 by stolfi // .nh // .TH revbytes 1 // .SH Name // revbytes \- reverses the bytes in each line of a file // // .SH Syntax // .B revbytes < infile > outfile // // .SH Description // .B revbytes // reads lines from standard input, reverses the order of bytes in each line, // and writes the result to stdout. // .PP // Lines are terminated by newline (\\012) or end-of-file. // The output ends with newline if and only if the input does so. // .PP // Beware that the program needs to store each input line // in memory; if the longest line has N bytes, the program // may try to allocateup to 3N bytes. // .SH Options // .PP // None. // .SH Bugs // Likely. // // .SH Challenges for the bored // None. // // .SH Author // Jorge Stolfi //