All pastes #925371 Raw Edit

erim

public c v1 · immutable
·published 2008-03-02 23:27 UTC
rendered paste body
#include <stdio.h>#define AA 197#define AE 196#define OO 214#define aa 229#define ae 228#define oo 246typedef unsigned char byte;int main(int argc, char *argv[]){	if (argc < 2)	{		printf("Usage: is_iso {fileName}\n");		return -1;	}	FILE *file = fopen(argv[1], "rb");	while (!feof(file))	{		byte b = fgetc(file);		if (b == AA || b == AE || b == OO || 			b == aa || b == ae || b == oo)		{			return 0;		}	}	return 1;}