/****
 *
 * Simple example illustrating use of fnmatch system function, useful for
 * program 4.
 *
 */

#include "fnmatch.h"
#include <stdlib.h>
#include <stdio.h>

int main(int argc, char** argv) {
    if (argc != 3) {
	fprintf(stderr, "Usage: %s pattern string\n", argv[0]);
	exit(-1);
    }
    printf("%s\n", fnmatch(argv[1], argv[2], FNM_PERIOD) ? "no" : "yes");
}
g