Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports
Path: blob/main/korean/hcode/files/patch-hcode.c
18157 views
1
--- hcode.c.orig 1998-03-11 04:46:36.000000000 -0500
2
+++ hcode.c 2013-06-12 20:13:26.000000000 -0400
3
@@ -13,8 +13,10 @@
4
update for new Hangul Code including UNICODE.
5
************************************************************ */
6
7
+#include <ctype.h>
8
#include <stdio.h>
9
-#include <strings.h>
10
+#include <stdlib.h>
11
+#include <string.h>
12
#include "hcode.h"
13
14
extern void pr2m();
15
@@ -37,9 +39,8 @@
16
0 on success from filtering programs. jshin */
17
char *basename(); /* strips directory */
18
19
-main(argc,argv)
20
-int argc;
21
-char *argv[];
22
+int
23
+main(int argc, char *argv[])
24
{
25
int inCode, outCode;
26
FILE *fpin, *fpout;
27
@@ -60,8 +61,8 @@
28
prwc = pr2m;
29
}
30
31
+ getwc = getks;
32
if ( inCode == KS || inCode == H3 ) {
33
- getwc = getks;
34
if ( outCode == IS && inCode == KS )
35
iseof = putprolog(fpin,fpout);
36
}
37
38