// Copyright 2013 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. #include #include #include #include "win.h" char* toutf(WinRune *r) { Rune *r1; int i, n; char *p; n = 0; while(r[n] != '\0') n++; n++; r1 = malloc(n*sizeof r1[0]); for(i=0; i