This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
use Carp; | |
sub usage { | |
print {*STDERR} "usage: read-from-file, copy-to-file\n"; | |
exit 1; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// gcc -pedantic -Wall -std=c99 transpose.c -o transpose | |
// c99 needed: non static aggregate initialization and decl in loop | |
#include <stdlib.h> | |
#include <stdio.h> | |
#include <string.h> | |
typedef struct | |
{ | |
int rows; |