Path: blob/main/korean/hcode/files/patch-hcode.c
18157 views
--- hcode.c.orig 1998-03-11 04:46:36.000000000 -05001+++ hcode.c 2013-06-12 20:13:26.000000000 -04002@@ -13,8 +13,10 @@3update for new Hangul Code including UNICODE.4************************************************************ */56+#include <ctype.h>7#include <stdio.h>8-#include <strings.h>9+#include <stdlib.h>10+#include <string.h>11#include "hcode.h"1213extern void pr2m();14@@ -37,9 +39,8 @@150 on success from filtering programs. jshin */16char *basename(); /* strips directory */1718-main(argc,argv)19-int argc;20-char *argv[];21+int22+main(int argc, char *argv[])23{24int inCode, outCode;25FILE *fpin, *fpout;26@@ -60,8 +61,8 @@27prwc = pr2m;28}2930+ getwc = getks;31if ( inCode == KS || inCode == H3 ) {32- getwc = getks;33if ( outCode == IS && inCode == KS )34iseof = putprolog(fpin,fpout);35}363738