1 /* go-getgoroot.c -- getgoroot function for runtime package.
3 Copyright 2010 The Go Authors. All rights reserved.
4 Use of this source code is governed by a BSD-style
5 license that can be found in the LICENSE file. */
11 String getgoroot (void) __asm__ (GOSYM_PREFIX "runtime.getgoroot");
19 p = getenv ("GOROOT");
20 ret.str = (const byte *) p;
24 ret.len = __builtin_strlen (p);