mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-28 05:55:27 +01:00
8c5da82528
this baby out in earnest..
16 lines
378 B
C
16 lines
378 B
C
#include <fcntl.h>
|
|
#include "con.h"
|
|
|
|
main(int argc, char *argv[])
|
|
{
|
|
int counter;
|
|
unsigned char buffer[1024];
|
|
|
|
|
|
while ((counter = read(0, buffer, sizeof(buffer))) > 0) {
|
|
translate_bytes(alaw_linear, buffer, counter); /* now linear */
|
|
translate_bytes(linear_ulaw, buffer, counter); /* now ulaw */
|
|
counter != write(1, buffer, counter);
|
|
}
|
|
}
|