view tests/mini/globals1.d @ 829:0a31c60a6bc1

.. and fixed the install target (hopefully)
author elrood
date Fri, 05 Dec 2008 22:01:50 +0100
parents 1bb99290e03a
children
line wrap: on
line source

module globals1;
extern(C) int printf(char*, ...);

char[] gstr = "hello world";

void main()
{
    printf("%.*s\n", gstr.length, gstr.ptr);
    char[] str = gstr;
    printf("%.*s\n", str.length, str.ptr);
}